IRC logs of #tryton for Thursday, 2023-07-06

irc.libera.chat #tryton log beginning Thu Jul 6 12:10:01 AM CEST 2023
-!- springwurm(~springwur@2a01:76c0:100:f500:1494:809f:63bc:e52a) has joined #tryton05:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:26
-!- ChanServ changed mode/#tryton -> +o cedk 06:26
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:41
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton07:30
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:36
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:50
cedkpokoli: could you please stop pushing on my MR!!!09:51
pokolicedk: did not push any of your MR09:53
cedkpokoli: https://foss.heptapod.net/tryton/tryton/-/merge_requests/594#note_30040709:54
pokolicedk: just clicked on the rebase option in the web interface09:54
pokoliAnd my idea was to click: "Merge after pipleline success" once the rebase is done09:54
pokoliBecuase the automatic merge request has failed previously, so it needs and update and I'm taking care of it09:55
cedkpokoli: please don't10:02
pokolicedk: Could you explain me why? 10:05
pokoliI'm just doing it to help finishing pending tasks 10:05
cedkpokoli: it generates extra work for me10:12
pokolicedk: which extra work?10:14
cedkif you want to be useful: review MR, fix your MR or fix pending bugs10:15
pokolicedk: I'm doing such actions because I'm reviewing MR 10:15
cedkthis is not reviewing10:18
pokolicedk: I just reviewed a MR, I looks good to me and I see it was tried to be merged but failed. As I have no remark to do I just help on merging it10:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:51
-!- ChanServ changed mode/#tryton -> +o cedk 10:51
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton11:41
mrichezHi, question about product view in sale menu: this view allows to select multiple warehouse but only the first one is considered for stock quantities. Could it be possible to have the sum of stock quantities when multiple warehouses are selected ? If not, would it be better to have a many2one instead of a many2many for warehouses ?12:00
-!- springwurm(~springwur@2a01:76c0:100:f500:e227:f194:21df:34e5) has joined #tryton12:02
-!- as_g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton12:30
pokolimrichez: if there is a many2many it should include the quantities of all locations12:46
mrichezpokoli: but this is not the case... only the first location is used. So, what shoud be done ? quantities of all locations (doable ?) replacing many2many by many2one ?12:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:50
-!- ChanServ changed mode/#tryton -> +o cedk 12:50
pokolimrichez: quantities of all locations is doable. For me current behaviour is a bug, should be reported and fixed12:51
mrichezpokoli: ok12:52
cedkmrichez: I do not know how you came to this conclusion but Product.get_quantity uses all the locations in the context13:02
mrichezcedk: maybe but it's not working. We have 2 warehouses, and stock quantities are only stock quantities of the first warehouse13:13
mrichezcedk: only forecast quantities seems changed13:15
cedkmrichez: see https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/stock/product.py#L21313:21
cedkare you sure that 2 locations are actually set in the context?13:21
mrichezcedk: yes locations': [4, 2863]13:25
mrichezstock_skip_warehouse': True, 'context_model': 'product.sale.context', 'currency': 23, 'customer': None, 'locations': [4, 2863], 'quantity': None, 'sale_date': None, 'stock_date_end': None})13:25
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton16:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:38
-!- ChanServ changed mode/#tryton -> +o cedk 21:38

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