changeset bea701b3cac5 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=bea701b3cac5
description:
Avoid double today record in product quantities by warehouse
We must exclude the stock move on today because we always add a record
for each
product on today with the union.
issue11068
review387531002
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1f608370cd32 -r bea701b3cac5 product.py
--- a/product.py Tue Dec 21 23:14:59 2021 +0100
+++ b/product.py Wed Dec 29 12:25:33 2021 +0100
@@ -592,7 +592,7 @@
& move.to_location.in_(
warehouse.select(warehouse.id))))
& ((date_column < today) & (move.state == 'done')
- | (date_column >= today)),
+ | (date_column > today)),
group_by=(date_column, product_column, move.company),
with_=warehouse))
for model, id_ in products: