chat.freenode.net #tryton log beginning Thu May 20 12:00:01 AM CEST 2021 | ||
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 22:27 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 22:38 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 22:40 | |
nicoe | A lot of people are migrating to libera.chat, even if you don't plan to migrate there yet (and we haven't even discussed it for #tryton) you might want to register your nickname there anyway | 22:42 |
---|---|---|
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:48 | |
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton | 23:08 | |
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton | 23:09 | |
-!- springwurm(~springwur@p200300fbaf088e00000000000000039b.dip0.t-ipconnect.de) has joined #tryton | 04:34 | |
lordvan_ | nicoe, librairc.net you mean? | 05:18 |
lordvan_ | ah typo | 05:19 |
lordvan_ | never mind me | 05:19 |
lordvan_ | libera.chat is what you wrote | 05:19 |
pokoli | lordvan_: https://libera.chat/ | 05:21 |
lordvan_ | yes | 05:25 |
lordvan_ | i just tried to register with their nickserv | 05:25 |
lordvan_ | and it failed | 05:26 |
lordvan_ | lol | 05:26 |
pokoli | lordvan_: you do no need to worry about somebody else registering your nickname | 05:28 |
lordvan_ | yeah it is not working right now lol | 05:29 |
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton | 05:33 | |
lordvan_ | I would appreciate if someone could have a look if this makes any sense: https://dpaste.org/Noeb (It is probably not correct just me brainstorming in a notepad++ tab while working on other stuff) | 05:51 |
lordvan_ | What I want is just a relation between a product and X other products + quantities | 05:51 |
lordvan_ | [like a very simple BOM) | 05:51 |
pokoli | lordvan_: why not using the BOM directly? | 06:15 |
lordvan_ | i do not want to use production. too much complexity | 06:15 |
lordvan_ | i have looked into it | 06:16 |
lordvan_ | but just from the workflow perspective for the end-users it is not feasible | 06:16 |
pokoli | lordvan_: then you are free to implement whatever you prefent | 06:17 |
pokoli | lordvan_: but what you did there is what is done on the BOM | 06:17 |
-!- thaneor(~ldlc6@r167-61-79-172.dialup.adsl.anteldata.net.uy) has joined #tryton | 06:17 | |
lordvan_ | pokoli, yes i used BOM/party relation as template | 06:17 |
lordvan_ | pokoli, I just wanted to know if there is any obvious (thinking) mistake that would not work in there | 06:18 |
lordvan_ | I want ot to basically work similar to adding a party relation to a party | 06:18 |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:24 | |
lordvan_ | since I looked at various ways of doing that but haven'T decided yet which is most feasible | 06:24 |
-!- rpit(~rpit@p200300c88f3713003fac4e9ad4ba86e0.dip0.t-ipconnect.de) has joined #tryton | 06:33 | |
pokoli | LordVan: i can not see any relation between boms and party relations | 06:34 |
LordVan | pokoli, there is not i was just looking at code doing similar stuff | 06:36 |
LordVan | and party relation is basically relation between parties with a type .. I want relation between products with a quantity (obviously not one to one but one to many | 06:37 |
LordVan | as you said I am doing pretty much what BOM does but way simpler | 06:37 |
pokoli | LordVan: If you want to simplify I will go for a function field on product which writes on the BOM | 06:42 |
pokoli | LordVan: so you already have the data on the proper model if you want to use production latter | 06:42 |
LordVan | to be honest I have no idea how to do that ^^ | 06:42 |
LordVan | - I am not opposed to use things already present in tryton if it is feasible of course, but I doubt we would ever use production in the way it is implemented, as it is just too complex for our use case | 06:44 |
pokoli | LordVan: create a function field that returns the input of the product bom, with a setter that writes to same bom and creates the bom if it does not exist | 06:44 |
LordVan | I'd have to make wizards,.. to adjust and hide most of that | 06:44 |
pokoli | LordVan: It seems that every part of tryton is too much complex for your use case | 06:45 |
LordVan | nah | 06:45 |
pokoli | except party and products probably | 06:45 |
LordVan | sale is great too i just added custom fields | 06:45 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:45 | |
LordVan | and a custom report | 06:45 |
LordVan | just production is .. too powerful/overkill for us | 06:46 |
pokoli | LordVan: could you concrete which features are too powerfull? | 06:47 |
LordVan | also the way it deals with BOM input,.. is great, but not something we can do as our input materials are often split between orders-/customers (a big metal sheet is not usually needed for any give part/assembly,..) | 06:47 |
pokoli | because production is just transforming some components to a final product | 06:48 |
LordVan | maybe i misunderstand | 06:48 |
LordVan | but i would never have all the components as any form of stock in the system | 06:48 |
pokoli | LordVan: you need to create a production with a single input (the sheet) and several outputs (the products of the orders) | 06:49 |
LordVan | the thing is | 06:49 |
LordVan | i do not know if that sheet would be used | 06:49 |
LordVan | or if another leftover part,.. | 06:49 |
LordVan | this is not something that is decided on order or even planning usually | 06:49 |
LordVan | -- we just do too many prototypes / low production numbers of parts | 06:50 |
pokoli | LordVan: just enter the input when you know.... | 06:50 |
LordVan | pokoli, ideally yes but then everyone in the company would have to use tryton to do that .. even the people who only barely know where the computers ON button is | 06:50 |
LordVan | so | 06:50 |
LordVan | we do not have the staff / time to micro-manage this in tryton | 06:50 |
LordVan | (micro-manage might be exagerating) | 06:51 |
pokoli | LordVan: so how you manage stock? | 06:51 |
LordVan | also often some small spare metal parts that are not kept track of in any list but are just in a shelf for small leftover parts are used so | 06:51 |
LordVan | there are (unfortunately for legacy reasons) 2 stock management systems | 06:52 |
LordVan | one is built into the automatically loading metal shelf | 06:52 |
LordVan | (which has no API,.. that i know of) | 06:52 |
LordVan | and another that I wrote myself some years ago using django | 06:52 |
LordVan | unfortuantely there is never a completely accurate stock of leftover metal sheets -- just the complete sheets / big parts | 06:53 |
LordVan | believe me .. i would prefer if this was not the case | 06:53 |
LordVan | but we'd need another 1 or 2 staff to manage this at this point in time | 06:53 |
LordVan | which is not going to happen | 06:53 |
LordVan | pokoli, so to make things simple: if i do not have stock management of my input materials in tryton .. is it feasible to use production at all? | 06:55 |
LordVan | just to have some relation between products that are parts of an assembly for my production docomentation (Which i generate with a customized sale report) | 06:56 |
pokoli | LordVan: so you have now you will have 3 stock management systems | 06:56 |
LordVan | yeah .. exactly so .. nope | 06:56 |
LordVan | i'D basically need production with no (tryton-recorded) input materials | 06:57 |
LordVan | just assemblies and the parts | 06:57 |
pokoli | LordVan: yes you can use just skip the assign part on the production | 06:57 |
LordVan | we produce everyting on demand | 06:57 |
pokoli | you will have negative quantities for everything, but I guess this is not an issue | 06:57 |
LordVan | no that is absolutely fine | 06:58 |
LordVan | if noone ever looks at quantities why would it matter ;) | 06:58 |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 06:59 | |
LordVan | so i will look into doing that later then | 07:01 |
LordVan | tbh I was not sure if it would mess things up if I used it like that | 07:01 |
pokoli | LordVan: so you can use production without assignation until you replace the other stock management ssystems | 07:01 |
LordVan | pokoli, without some major changes in how things are added I doubt i will be able to replace it, but as long as using it like you suggested doesn'T add (significant) extra overhead that definitely sounds like a good idea | 07:02 |
LordVan | there'S one hting though .. for my reports .. I need the assembly sub-parts to be added as individual sale lines as well (sometimes anyway -- I got a boolean flag on my product there to differenciate). is this something that'd be possible easily? | 07:03 |
LordVan | - the reason for generating the reports from there and no production is because of parts that never get entered as real products (As they are one-off) but just as sale lines | 07:04 |
pokoli | LordVan: did you have this already solved? | 07:06 |
LordVan | yes this is working fine as it is | 07:06 |
LordVan | i just need the part still where assemblies are added and then the sub-parts will be added as sale lines too | 07:06 |
LordVan | which is why i was looking into the first part (the link between an assembly and the sub parts) first no | 07:07 |
LordVan | pokoli, https://github.com/LordVan/tryton-modules/blob/master/rm_extra_data/sale.py | 07:07 |
LordVan | if you are curious | 07:08 |
LordVan | pokoli, but I assume it would be possible to hook into some method that gets called when a product with a BOM gets added to a sale_line ? | 07:18 |
LordVan | [if not i'd just write some wizard or so maybe] | 07:18 |
pokoli | LordVan: hook to do what? | 07:19 |
LordVan | well i was thinking | 07:20 |
LordVan | if there was a method that gets called when a sale line is added | 07:21 |
LordVan | like on_change_product in the sale line dialogue itself | 07:21 |
LordVan | https://github.com/tryton/sale/blob/0e36c9dac79f38563890a1d5a8a277487b1d3ef6/sale.py#L495 probably is what i need | 07:22 |
LordVan | as I would want to add the remaining sale lines when one line was just added | 07:23 |
LordVan | like you add assembly ASM_lbalal .. as a sale line | 07:23 |
LordVan | and after that the parts get added as sale lines below that | 07:23 |
pokoli | LordVan: the create method is called to create records, you can override that to hook process in background | 07:23 |
pokoli | LordVan: what you describe is implemented in product_kit module | 07:24 |
LordVan | i have not seen/looked at that yet | 07:24 |
pokoli | I'm concient there is not so much people reviewing new functionalities before they are released and event just after they are released | 07:26 |
LordVan | i don'T even remember seeing the name before | 07:27 |
LordVan | ah it was added 5 weeks ago | 07:27 |
LordVan | that explains that | 07:27 |
LordVan | i looked before that if there was something suitable | 07:27 |
LordVan | it might actually be doing what i was trying to code | 07:28 |
LordVan | to some extent | 07:28 |
-!- ludo2(~Thunderbi@2001:912:1480:380::1) has joined #tryton | 07:28 | |
LordVan | looks like i'D have to upgrade to 6.1.0 first though | 07:29 |
LordVan | that would be awesome though as I'm sure it'd be better implemented than what I could've done at this point with my knowledge and experience | 07:30 |
springwurm | LordVan: did you use tryton to purchase the raw Metal Sheets? | 07:34 |
LordVan | springwurm, no | 07:35 |
LordVan | not using tryton for any purchases (yet) | 07:35 |
LordVan | but even if | 07:35 |
LordVan | since we rarely use a whole sheet for one order only (or even just one customer) but always have parts left over,.. | 07:36 |
LordVan | it is rather .. tedious | 07:36 |
LordVan | the only things we use for the time being are party, sale and product (and some extra modules) | 07:37 |
pokoli | LordVan: product_kit is included on 6.0 series | 07:40 |
LordVan | yes I was just skimming over the code | 07:40 |
LordVan | it seems to be exactly what I want (of course i'D have to add things for my custom fields,.. but better than starting from scratch) | 07:41 |
LordVan | gotta look into upgrading my install & modules to 6.0 | 07:41 |
LordVan | since from what I have seen so far | 07:41 |
LordVan | product_kit is exactly what i need | 07:42 |
LordVan | well way better done than my brainstorm-code earlier | 07:51 |
-!- petrus(~petrus@unaffiliated/petrus) has joined #tryton | 08:08 | |
pokoli | LordVan: you're welcome ;-) | 08:09 |
LordVan | and the best part | 08:10 |
LordVan | if i use that | 08:10 |
LordVan | i can still later on use production with it as well i would think | 08:10 |
pokoli | LordVan: no, kits is not productions. They are diferent concepts | 08:27 |
LordVan | yes of course | 08:27 |
LordVan | but if i add a product that uses production to a kit | 08:27 |
LordVan | that should work i think | 08:27 |
pokoli | LordVan: you can use any product on a kit, there is no restriction at all | 08:29 |
LordVan | exactly that is what i meant | 08:29 |
pokoli | yangoon: ping | 08:41 |
-!- petrus(~petrus@unaffiliated/petrus) has left #tryton | 09:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:40 | |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 09:53 | |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 09:56 | |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 09:59 | |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 10:08 | |
LordVan | ACTION looks for changelog / upgrade notes for 6.0 | 10:23 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:44 | |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 10:53 | |
-!- udono(~udono@010-056-210-188.ip-addr.inexio.net) has joined #tryton | 11:41 | |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 13:39 | |
LordVan | btw | 13:46 |
LordVan | is there a list of current - and in the works -documentation somewhere? | 13:47 |
LordVan | i remembmer there was some in a tracker somewhere as well but forgot where | 13:47 |
pokoli | LordVan: did you want to contribute? | 14:04 |
-!- noosanon(~user@41.222.253.208) has joined #tryton | 14:04 | |
plaes | 1 | 16:08 |
-!- springwurm(~springwur@p200300fbaf088e00000000000000039b.dip0.t-ipconnect.de) has joined #tryton | 16:39 | |
-!- thaneor(~ldlc6@r167-61-5-29.dialup.adsl.anteldata.net.uy) has joined #tryton | 18:23 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 18:54 | |
-!- ludo2(~Thunderbi@221.114.141.88.rev.sfr.net) has joined #tryton | 19:04 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!