changeset fda50010a5bb in modules/sale_stock_quantity:6.4
details:
https://hg.tryton.org/modules/sale_stock_quantity?cmd=changeset&node=fda50010a5bb
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 98b4eeeb7188 -r fda50010a5bb sale.py
--- a/sale.py Thu Oct 20 09:43:17 2022 +0200
+++ b/sale.py Fri Oct 21 13:12:49 2022 +0200
@@ -155,7 +155,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)