IRC logs of #tryton for Thursday, 2021-05-20

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 #tryton22:27
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton22:38
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton22:40
nicoeA 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 anyway22:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:48
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton23:08
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton23:09
-!- springwurm(~springwur@p200300fbaf088e00000000000000039b.dip0.t-ipconnect.de) has joined #tryton04:34
lordvan_nicoe, librairc.net you mean?05:18
lordvan_ah typo05:19
lordvan_never mind me05:19
lordvan_libera.chat is what you wrote05:19
pokolilordvan_: https://libera.chat/05:21
lordvan_yes05:25
lordvan_i just tried to register with their nickserv05:25
lordvan_and it failed05:26
lordvan_lol05:26
pokolilordvan_: you do no need to worry about somebody else registering your nickname05:28
lordvan_yeah it is not working right now lol05:29
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton05: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 + quantities05:51
lordvan_[like a very simple BOM)05:51
pokolilordvan_: why not using the BOM directly?06:15
lordvan_i do not want to use production. too much complexity06:15
lordvan_i have looked into it06:16
lordvan_but just from the workflow perspective for the end-users it is not feasible06:16
pokolilordvan_: then you are free to implement whatever you prefent06:17
pokolilordvan_: but what you did there is what is done on the BOM06:17
-!- thaneor(~ldlc6@r167-61-79-172.dialup.adsl.anteldata.net.uy) has joined #tryton06:17
lordvan_pokoli, yes i used BOM/party relation as template06:17
lordvan_pokoli, I just wanted to know if there is any obvious (thinking) mistake that would not work in there06:18
lordvan_I want ot to basically work similar to adding a party relation to a party06:18
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:24
lordvan_since I looked at various ways of doing that but haven'T decided yet which is most feasible06:24
-!- rpit(~rpit@p200300c88f3713003fac4e9ad4ba86e0.dip0.t-ipconnect.de) has joined #tryton06:33
pokoliLordVan: i can not see any relation between boms and party relations06:34
LordVanpokoli, there is not i was just looking at code doing similar stuff06:36
LordVanand 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 many06:37
LordVanas you said I am doing pretty much what BOM does but way simpler06:37
pokoliLordVan: If you want to simplify I will go for a function field on product which writes on the BOM06:42
pokoliLordVan: so you already have the data on the proper model if you want to use production latter06:42
LordVanto 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 case06:44
pokoliLordVan: 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 exist06:44
LordVanI'd have to make wizards,.. to adjust and hide most of that06:44
pokoliLordVan: It seems that every part of tryton is too much complex for your use case06:45
LordVannah06:45
pokoliexcept party and products probably06:45
LordVansale is great too i just added custom fields06:45
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:45
LordVanand a custom report06:45
LordVanjust production is .. too powerful/overkill for us06:46
pokoliLordVan: could you concrete which features are too powerfull?06:47
LordVanalso 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
pokolibecause production is just transforming some components to a final product06:48
LordVanmaybe i misunderstand06:48
LordVanbut i would never have all the components as any form of stock in the system06:48
pokoliLordVan: you need to create a production with a single input (the sheet) and several outputs (the products of the orders)06:49
LordVanthe thing is06:49
LordVani do not know if that sheet would be used06:49
LordVanor if another leftover part,..06:49
LordVanthis is not something that is decided on order or even planning usually06:49
LordVan-- we just do too many prototypes / low production numbers of parts06:50
pokoliLordVan: just enter the input when you know....06:50
LordVanpokoli, 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 is06:50
LordVanso06:50
LordVanwe do not have the staff / time to micro-manage this in tryton06:50
LordVan(micro-manage might be exagerating)06:51
pokoliLordVan: so how you manage stock?06:51
LordVanalso 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 so06:51
LordVanthere are (unfortunately for legacy reasons) 2 stock management systems06:52
LordVanone is built into the automatically loading metal shelf06:52
LordVan(which has no API,.. that i know of)06:52
LordVanand another that I wrote myself some years ago using django06:52
LordVanunfortuantely there is never a completely accurate stock of leftover metal sheets -- just the complete sheets / big parts06:53
LordVanbelieve me .. i would prefer if this was not the case06:53
LordVanbut we'd need another 1 or 2 staff to manage this at this point in time06:53
LordVanwhich is not going to happen06:53
LordVanpokoli, 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
LordVanjust 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
pokoliLordVan: so you have now you will have 3 stock management systems06:56
LordVanyeah .. exactly so .. nope06:56
LordVani'D basically need production with no (tryton-recorded) input materials06:57
LordVanjust assemblies and the parts06:57
pokoliLordVan: yes you can use just skip the assign part on the production06:57
LordVanwe produce everyting on demand06:57
pokoliyou will have negative quantities for everything, but I guess this is not an issue06:57
LordVanno that is absolutely fine06:58
LordVanif noone ever looks at quantities why would it matter ;)06:58
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton06:59
LordVanso i will look into doing that later then07:01
LordVantbh I was not sure if it would mess things up if I used it like that07:01
pokoliLordVan: so you can use production without assignation until you replace the other stock management ssystems07:01
LordVanpokoli, 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 idea07:02
LordVanthere'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 lines07:04
pokoliLordVan: did you have this already solved?07:06
LordVanyes this is working fine as it is07:06
LordVani just need the part still where assemblies are added and then the sub-parts will be added as sale lines too07:06
LordVanwhich is why i was looking into the first part (the link between an assembly and the sub parts) first no07:07
LordVanpokoli, https://github.com/LordVan/tryton-modules/blob/master/rm_extra_data/sale.py07:07
LordVanif you are curious07:08
LordVanpokoli, 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
pokoliLordVan: hook to do what?07:19
LordVanwell i was thinking07:20
LordVanif there was a method that gets called when a sale line is added07:21
LordVanlike on_change_product in the sale line dialogue itself07:21
LordVanhttps://github.com/tryton/sale/blob/0e36c9dac79f38563890a1d5a8a277487b1d3ef6/sale.py#L495 probably is what i need07:22
LordVanas I would want to add the remaining sale lines when one line was just added07:23
LordVanlike you add assembly ASM_lbalal .. as a sale line07:23
LordVanand after that the parts get added as sale lines below that07:23
pokoliLordVan: the create method is called to create records, you can override that to hook process in background07:23
pokoliLordVan: what you describe is implemented in product_kit module07:24
LordVani have not seen/looked at that yet07:24
pokoliI'm concient there is not so much people reviewing new functionalities before they are released and event just after they are released07:26
LordVani don'T even remember seeing the name before07:27
LordVanah it was added 5 weeks ago07:27
LordVanthat explains that07:27
LordVani looked before that if there was something suitable07:27
LordVanit might actually be doing what i was trying to code07:28
LordVanto some extent07:28
-!- ludo2(~Thunderbi@2001:912:1480:380::1) has joined #tryton07:28
LordVanlooks like i'D have to upgrade to 6.1.0 first though07:29
LordVanthat 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 experience07:30
springwurmLordVan: did you use tryton to purchase the raw Metal Sheets?07:34
LordVanspringwurm, no07:35
LordVannot using tryton for any purchases (yet)07:35
LordVanbut even if07:35
LordVansince we rarely use a whole sheet for one order only (or even just one customer) but always have parts left over,..07:36
LordVanit is rather .. tedious07:36
LordVanthe only things we use for the time being are party, sale and product (and some extra modules)07:37
pokoliLordVan: product_kit is included on 6.0 series07:40
LordVanyes I was just skimming over the code07:40
LordVanit 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
LordVangotta look into upgrading my install & modules to 6.007:41
LordVansince from what  I have seen so far07:41
LordVanproduct_kit is exactly what i need07:42
LordVanwell way better done than my brainstorm-code earlier07:51
-!- petrus(~petrus@unaffiliated/petrus) has joined #tryton08:08
pokoliLordVan: you're welcome ;-)08:09
LordVanand the best part08:10
LordVanif i use that08:10
LordVani can still later on use production with it as well i would think08:10
pokoliLordVan: no, kits is not productions. They are diferent concepts08:27
LordVanyes of course08:27
LordVanbut if i add a product that uses production to a kit08:27
LordVanthat should work i think08:27
pokoliLordVan: you can use any product on a kit, there is no restriction at all08:29
LordVanexactly that is what i meant08:29
pokoliyangoon: ping08:41
-!- petrus(~petrus@unaffiliated/petrus) has left #tryton09:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:40
-!- noosanon(~user@41.222.253.208) has joined #tryton09:53
-!- noosanon(~user@41.222.253.208) has joined #tryton09:56
-!- noosanon(~user@41.222.253.208) has joined #tryton09:59
-!- noosanon(~user@41.222.253.208) has joined #tryton10:08
LordVanACTION looks for changelog / upgrade notes for 6.010:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:44
-!- mariomop(~quassel@181.29.189.235) has joined #tryton10:53
-!- udono(~udono@010-056-210-188.ip-addr.inexio.net) has joined #tryton11:41
-!- noosanon(~user@41.222.253.208) has joined #tryton13:39
LordVanbtw13:46
LordVanis there a list of current - and in the works -documentation somewhere?13:47
LordVani remembmer there was some in a tracker somewhere as well but forgot where13:47
pokoliLordVan: did you want to contribute?14:04
-!- noosanon(~user@41.222.253.208) has joined #tryton14:04
plaes116:08
-!- springwurm(~springwur@p200300fbaf088e00000000000000039b.dip0.t-ipconnect.de) has joined #tryton16:39
-!- thaneor(~ldlc6@r167-61-5-29.dialup.adsl.anteldata.net.uy) has joined #tryton18:23
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton18:54
-!- ludo2(~Thunderbi@221.114.141.88.rev.sfr.net) has joined #tryton19:04

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!