changeset af3112a22d5c in modules/sale_stock_quantity:5.0
details: 
https://hg.tryton.org/modules/sale_stock_quantity?cmd=changeset&node=af3112a22d5c
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 2c97fd82baab -r af3112a22d5c sale.py
--- a/sale.py   Thu Jun 17 22:07:38 2021 +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)

Reply via email to