changeset b053f51384fd in modules/stock:6.0 details: https://hg.tryton.org/modules/stock?cmd=changeset&node=b053f51384fd 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 ff069e009b56 -r b053f51384fd product.py --- a/product.py Tue Sep 06 23:34:44 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