From 29d3bc975fb2a0240565bf346a086b0368068b92 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Tue, 13 Sep 2022 23:47:14 +0200 Subject: [PATCH] Exclude cancelled moves in product quantities by warehouse move issue11702 review441451003 (grafted from a18a3efc5f4eb5b55360aac5ad3ae119bcc36654) --HG-- branch : 6.0 --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index fc64bd592a..406d2c55cc 100644 --- a/product.py +++ b/product.py @@ -861,7 +861,7 @@ class ProductQuantitiesByWarehouseMove(ModelSQL, ModelView): & move.to_location.in_( warehouse.select(warehouse.id)))) & ((date_column < today) & (move.state == 'done') - | (date_column >= today)), + | (date_column >= today) & (move.state != 'cancelled')), with_=warehouse)) @classmethod