changeset bf6c479c94b3 in modules/stock:6.2 details: https://hg.tryton.org/modules/stock?cmd=changeset&node=bf6c479c94b3 description: Exclude cancelled moves in product quantities by warehouse move
issue11702 review441451003 (grafted from a18a3efc5f4eb5b55360aac5ad3ae119bcc36654) diffstat: product.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 0fcc1459eece -r bf6c479c94b3 product.py --- a/product.py Tue Sep 06 23:34:19 2022 +0200 +++ b/product.py Tue Sep 13 23:47:14 2022 +0200 @@ -861,7 +861,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