changeset 9f0f830bf469 in modules/sale_stock_quantity:6.2 details: https://hg.tryton.org/modules/sale_stock_quantity?cmd=changeset&node=9f0f830bf469 description: Ignore sold quantities from other warehouse on sale check_stock_quantity
issue11802 review412001003 (grafted from f7fbb41bd582b8267a87895eb34920944461582d) diffstat: sale.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r d24ea6fb2005 -r 9f0f830bf469 sale.py --- a/sale.py Thu Oct 20 09:43:17 2022 +0200 +++ b/sale.py Fri Oct 21 13:12:49 2022 +0200 @@ -158,7 +158,7 @@ for line in lines: product = line.product date = line.sale.sale_date or today - if date > today: + if date > today or line.warehouse != self.warehouse: continue quantity = Uom.compute_qty(line.unit, line.quantity, product.default_uom, round=False)