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
(grafted from bea701b3cac5ac6ae8cebb1c517c5981f83e395e)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-12-29 12:25:33 +01:00
1 parent 2ed24684e4
commit bdf0adb534
1 file changed
+1 -1
+1 -1
View File
@@ -595,7 +595,7 @@ class ProductQuantitiesByWarehouse(ModelSQL, ModelView):
& 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: