IRC logs of #tryton for Thursday, 2021-02-11

chat.freenode.net #tryton log beginning Thu Feb 11 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:39
-!- thaneor1(~ldlc6@r167-61-87-210.dialup.adsl.anteldata.net.uy) has joined #tryton01:55
-!- thaneor(~acer8@r186-54-50-189.dialup.adsl.anteldata.net.uy) has joined #tryton02:04
-!- thaneor(~acer8@r167-57-83-29.dialup.adsl.anteldata.net.uy) has joined #tryton03:01
pokoliHirschbeutel: we implemented the supplier stock feature as part of customer customization, I can extract the code if this helps you06:16
Hirschbeutelpokoli: which way you choosed?06:17
Hirschbeutelpokoli:06:17
pokoliHirschbeutel: we created a separate table for the stock06:18
pokoliHirschbeutel: and we did not implement the supplier choose because our customer just required to know the available quantity06:19
Hirschbeutelpokoli: yes - I think I have mostly the same :)06:19
Hirschbeutelpokoli: flat tables of all external warehouses06:20
pokoliHirschbeutel: then added a supplier quantity functional field on product to sum the supplier quantity of all the suppliers, becaues this was a need of our customer06:20
pokoliand we have two cron jobs to load and update the table from suppliers files06:21
Hirschbeutelpokoli: I have a field functional field available - I use it only to show hide in the frontend06:21
Hirschbeutelpokoli: so again each reinvented the wheel :)06:21
Hirschbeutelpokoli: I have only one problem - I have 9 external warehouses integrated - in some of them the out of stock products disapear06:24
Hirschbeutelpokoli: missing in the file :D06:27
pokoliHirschbeutel: what do you mean by disapear? They are inactivated?06:27
pokoliHirschbeutel: then you should set stock to zero to all products that are not in the file (or remove the product supplier records)06:27
Hirschbeutelpokoli: yes - this is a very heavy task because its the biggest vendor of products of this kind in the world06:28
Hirschbeutelpokoli: always funny that such big companies have such shitty data interfaces06:29
Hirschbeutelpokoli: in germany every company which uses SAP is technically lost - germany lives only from the fact that everyone is so industrious and fixes the mistakes by hand.:D06:32
Hirschbeutelpokoli: for example I have a oftp2-connection to a supplier with all the EDI-Stuff - it works, but you cannot rely on the data - a person compares a printed file with the sent file :D06:36
pokoliHirschbeutel: lol but sounds familiar06:37
pokoliI never trust data from other systems06:37
Hirschbeutelpokoli: you can trust when they are from me !!!111!06:38
Hirschbeutelpokoli: but I would pack a strange bom in front to screw you06:39
pokoliHirschbeutel: indeed I ordered some tryton stickers to you some time ago, No issues so far ;-)06:44
Hirschbeutelpokoli: 2400 left - hopefully there is a linux day this year ...06:49
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:50
pokoliHirschbeutel: we have a lot of them already available07:09
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:25
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton07:59
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:49
-!- sisalp(~sisalpuse@51.sisalp.net) has joined #tryton09:32
-!- Out`Of`Control(~Viper@rbose.org) has joined #tryton09:32
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton09:38
-!- Guest67228(~Pilou@rogoth.ir5.eu) has joined #tryton09:41
-!- Guest67228(~Pilou@rogoth.ir5.eu) has left #tryton09:45
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton09:46
mrichezhi, just looking code of web_shop_vue_storefront module. There's no "user_logout" ? So session is web.user.session is never removed ?10:17
cedkmrichez: I think VueStorefront just remove the session from the client10:22
mrichezcedk: so web.user.session is never "cleaned" and growing with sessions ?10:25
cedkmrichez: indeed it may be good to add a cron to clean the table10:27
mrichezcedk: and removing session on logout with a route ?10:30
cedkmrichez: I do not understand10:33
mrichezdefining a method POST_vsf_user_logout which remove token from session (opposite of https://hg.tryton.org/modules/web_shop_vue_storefront/file/tip/web.py#l262)10:35
cedkmrichez: who will call it?10:36
mrichezcedk: same way other methods are called by vue_store_front, no ?10:37
cedkmrichez: I see no such call: https://docs.vuestorefront.io/v1/guide/data-resolvers/user-service.html#methods10:39
mrichezcedk: indeed, i was looking at the wrong place : https://docs.vuestorefront.io/v1/guide/modules/user.html10:42
-!- mariomop(~quassel@181.29.189.235) has joined #tryton10:45
-!- thaneor(~acer8@r167-57-83-29.dialup.adsl.anteldata.net.uy) has joined #tryton13:05
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:07
-!- thaneor2(~ldlc6@r167-61-16-238.dialup.adsl.anteldata.net.uy) has joined #tryton13:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:53
-!- thaneor(~acer8@r167-57-95-147.dialup.adsl.anteldata.net.uy) has joined #tryton15:04
-!- rpit1(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton15:36
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton16:15
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton16:40
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton16:50
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton17:38
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton18:27
-!- lucascastro(~lucascast@177-185-133-183.dynamic.isotelco.net.br) has joined #tryton19:39
Hirschbeutel boah - feel dump - how to update a one2many in on_change in a wizard - have the espected lines but empty21:13
cedkHirschbeutel: normally you just have to update the corresponding record21:16
Hirschbeutelcedk: i thought i didn't have to ask something like that anymore 🙂 self.already = [i.product for i in self.warehouse.lines]21:32
Hirschbeutelcedk: I do a on_change in a modelview used as form in a wizard21:32
Hirschbeutelcedk: need a rest - perhaps it is too late to see the obvious21:33
cedkHirschbeutel: it is strange because adding to One2Many should be with new instances21:35
Hirschbeutelcedk: how new? I want to show existing records.21:43
Hirschbeutelcedk: will split the wizard in two steps - possibly its better to search records in a trynsition an than pass to the next21:44
Hirschbeuteltransition21:44
cedkHirschbeutel: you must use Many2Many than21:48
cedkHirschbeutel: because in One2Many, there is 'One'21:49
Hirschbeutelcedk: 😀 I knew its to late - but I thought the One is the wizard21:51
Hirschbeutelcedk: I will take a glas of wine and fix it tomorrow 🙂21:54
cedkHirschbeutel: indeed One2Many are rarely usable in wizard21:59
Hirschbeutelcedk: I see22:02
Hirschbeutelcedk: starting as form_action with a Transaction and filling default is the better solution22:19
-!- lucascastro(~lucascast@177-185-133-183.dynamic.isotelco.net.br) has joined #tryton22:19
Hirschbeutelcedk: startet it first without any context22:19
-!- thaneor1(~ldlc6@r167-61-16-238.dialup.adsl.anteldata.net.uy) has joined #tryton22:48

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