chat.freenode.net #tryton log beginning Thu Feb 11 12:00:01 AM CET 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:39 | |
-!- thaneor1(~ldlc6@r167-61-87-210.dialup.adsl.anteldata.net.uy) has joined #tryton | 01:55 | |
-!- thaneor(~acer8@r186-54-50-189.dialup.adsl.anteldata.net.uy) has joined #tryton | 02:04 | |
-!- thaneor(~acer8@r167-57-83-29.dialup.adsl.anteldata.net.uy) has joined #tryton | 03:01 | |
pokoli | Hirschbeutel: we implemented the supplier stock feature as part of customer customization, I can extract the code if this helps you | 06:16 |
---|---|---|
Hirschbeutel | pokoli: which way you choosed? | 06:17 |
Hirschbeutel | pokoli: | 06:17 |
pokoli | Hirschbeutel: we created a separate table for the stock | 06:18 |
pokoli | Hirschbeutel: and we did not implement the supplier choose because our customer just required to know the available quantity | 06:19 |
Hirschbeutel | pokoli: yes - I think I have mostly the same :) | 06:19 |
Hirschbeutel | pokoli: flat tables of all external warehouses | 06:20 |
pokoli | Hirschbeutel: 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 customer | 06:20 |
pokoli | and we have two cron jobs to load and update the table from suppliers files | 06:21 |
Hirschbeutel | pokoli: I have a field functional field available - I use it only to show hide in the frontend | 06:21 |
Hirschbeutel | pokoli: so again each reinvented the wheel :) | 06:21 |
Hirschbeutel | pokoli: I have only one problem - I have 9 external warehouses integrated - in some of them the out of stock products disapear | 06:24 |
Hirschbeutel | pokoli: missing in the file :D | 06:27 |
pokoli | Hirschbeutel: what do you mean by disapear? They are inactivated? | 06:27 |
pokoli | Hirschbeutel: then you should set stock to zero to all products that are not in the file (or remove the product supplier records) | 06:27 |
Hirschbeutel | pokoli: yes - this is a very heavy task because its the biggest vendor of products of this kind in the world | 06:28 |
Hirschbeutel | pokoli: always funny that such big companies have such shitty data interfaces | 06:29 |
Hirschbeutel | pokoli: 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.:D | 06:32 |
Hirschbeutel | pokoli: 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 :D | 06:36 |
pokoli | Hirschbeutel: lol but sounds familiar | 06:37 |
pokoli | I never trust data from other systems | 06:37 |
Hirschbeutel | pokoli: you can trust when they are from me !!!111! | 06:38 |
Hirschbeutel | pokoli: but I would pack a strange bom in front to screw you | 06:39 |
pokoli | Hirschbeutel: indeed I ordered some tryton stickers to you some time ago, No issues so far ;-) | 06:44 |
Hirschbeutel | pokoli: 2400 left - hopefully there is a linux day this year ... | 06:49 |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 06:50 | |
pokoli | Hirschbeutel: we have a lot of them already available | 07:09 |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:25 | |
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton | 07:59 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:49 | |
-!- sisalp(~sisalpuse@51.sisalp.net) has joined #tryton | 09:32 | |
-!- Out`Of`Control(~Viper@rbose.org) has joined #tryton | 09:32 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:38 | |
-!- Guest67228(~Pilou@rogoth.ir5.eu) has joined #tryton | 09:41 | |
-!- Guest67228(~Pilou@rogoth.ir5.eu) has left #tryton | 09:45 | |
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton | 09:46 | |
mrichez | hi, 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 |
cedk | mrichez: I think VueStorefront just remove the session from the client | 10:22 |
mrichez | cedk: so web.user.session is never "cleaned" and growing with sessions ? | 10:25 |
cedk | mrichez: indeed it may be good to add a cron to clean the table | 10:27 |
mrichez | cedk: and removing session on logout with a route ? | 10:30 |
cedk | mrichez: I do not understand | 10:33 |
mrichez | defining 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 |
cedk | mrichez: who will call it? | 10:36 |
mrichez | cedk: same way other methods are called by vue_store_front, no ? | 10:37 |
cedk | mrichez: I see no such call: https://docs.vuestorefront.io/v1/guide/data-resolvers/user-service.html#methods | 10:39 |
mrichez | cedk: indeed, i was looking at the wrong place : https://docs.vuestorefront.io/v1/guide/modules/user.html | 10:42 |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 10:45 | |
-!- thaneor(~acer8@r167-57-83-29.dialup.adsl.anteldata.net.uy) has joined #tryton | 13:05 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 13:07 | |
-!- thaneor2(~ldlc6@r167-61-16-238.dialup.adsl.anteldata.net.uy) has joined #tryton | 13:56 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:53 | |
-!- thaneor(~acer8@r167-57-95-147.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:04 | |
-!- rpit1(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton | 15:36 | |
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton | 16:15 | |
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton | 16:40 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 16:50 | |
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton | 17:38 | |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 18:27 | |
-!- lucascastro(~lucascast@177-185-133-183.dynamic.isotelco.net.br) has joined #tryton | 19:39 | |
Hirschbeutel | boah - feel dump - how to update a one2many in on_change in a wizard - have the espected lines but empty | 21:13 |
cedk | Hirschbeutel: normally you just have to update the corresponding record | 21:16 |
Hirschbeutel | cedk: i thought i didn't have to ask something like that anymore 🙂 self.already = [i.product for i in self.warehouse.lines] | 21:32 |
Hirschbeutel | cedk: I do a on_change in a modelview used as form in a wizard | 21:32 |
Hirschbeutel | cedk: need a rest - perhaps it is too late to see the obvious | 21:33 |
cedk | Hirschbeutel: it is strange because adding to One2Many should be with new instances | 21:35 |
Hirschbeutel | cedk: how new? I want to show existing records. | 21:43 |
Hirschbeutel | cedk: will split the wizard in two steps - possibly its better to search records in a trynsition an than pass to the next | 21:44 |
Hirschbeutel | transition | 21:44 |
cedk | Hirschbeutel: you must use Many2Many than | 21:48 |
cedk | Hirschbeutel: because in One2Many, there is 'One' | 21:49 |
Hirschbeutel | cedk: 😀 I knew its to late - but I thought the One is the wizard | 21:51 |
Hirschbeutel | cedk: I will take a glas of wine and fix it tomorrow 🙂 | 21:54 |
cedk | Hirschbeutel: indeed One2Many are rarely usable in wizard | 21:59 |
Hirschbeutel | cedk: I see | 22:02 |
Hirschbeutel | cedk: starting as form_action with a Transaction and filling default is the better solution | 22:19 |
-!- lucascastro(~lucascast@177-185-133-183.dynamic.isotelco.net.br) has joined #tryton | 22:19 | |
Hirschbeutel | cedk: startet it first without any context | 22:19 |
-!- thaneor1(~ldlc6@r167-61-16-238.dialup.adsl.anteldata.net.uy) has joined #tryton | 22:48 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!