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 #tryton | 05:00 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:26 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:26 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:41 | |
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton | 07:30 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:36 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:50 | |
cedk | pokoli: could you please stop pushing on my MR!!! | 09:51 |
---|---|---|
pokoli | cedk: did not push any of your MR | 09:53 |
cedk | pokoli: https://foss.heptapod.net/tryton/tryton/-/merge_requests/594#note_300407 | 09:54 |
pokoli | cedk: just clicked on the rebase option in the web interface | 09:54 |
pokoli | And my idea was to click: "Merge after pipleline success" once the rebase is done | 09:54 |
pokoli | Becuase the automatic merge request has failed previously, so it needs and update and I'm taking care of it | 09:55 |
cedk | pokoli: please don't | 10:02 |
pokoli | cedk: Could you explain me why? | 10:05 |
pokoli | I'm just doing it to help finishing pending tasks | 10:05 |
cedk | pokoli: it generates extra work for me | 10:12 |
pokoli | cedk: which extra work? | 10:14 |
cedk | if you want to be useful: review MR, fix your MR or fix pending bugs | 10:15 |
pokoli | cedk: I'm doing such actions because I'm reviewing MR | 10:15 |
cedk | this is not reviewing | 10:18 |
pokoli | cedk: 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 it | 10:20 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:51 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 10:51 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 11:41 | |
mrichez | Hi, 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 #tryton | 12:02 | |
-!- as_g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton | 12:30 | |
pokoli | mrichez: if there is a many2many it should include the quantities of all locations | 12:46 |
mrichez | pokoli: 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 #tryton | 12:50 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 12:50 | |
pokoli | mrichez: quantities of all locations is doable. For me current behaviour is a bug, should be reported and fixed | 12:51 |
mrichez | pokoli: ok | 12:52 |
cedk | mrichez: I do not know how you came to this conclusion but Product.get_quantity uses all the locations in the context | 13:02 |
mrichez | cedk: maybe but it's not working. We have 2 warehouses, and stock quantities are only stock quantities of the first warehouse | 13:13 |
mrichez | cedk: only forecast quantities seems changed | 13:15 |
cedk | mrichez: see https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/stock/product.py#L213 | 13:21 |
cedk | are you sure that 2 locations are actually set in the context? | 13:21 |
mrichez | cedk: yes locations': [4, 2863] | 13:25 |
mrichez | stock_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 #tryton | 16:57 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21: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/!