changeset a18a3efc5f4e in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=a18a3efc5f4e
description:
Exclude cancelled moves in product quantities by warehouse move
issue11702
review441451003
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f51295ca496c -r a18a3efc5f4e product.py
--- a/product.py Tue Sep 13 01:04:26 2022 +0200
+++ b/product.py Tue Sep 13 23:47:14 2022 +0200
@@ -935,7 +935,7 @@
& 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