Exclude cancelled moves in product quantities by warehouse move

issue11702
review441451003
(grafted from a18a3efc5f4eb5b55360aac5ad3ae119bcc36654)

--HG--
branch : 6.0
This commit is contained in:
Maxime Richez committed 2022-09-13 23:47:14 +02:00
1 parent d71d81d665
commit 29d3bc975f
1 file changed
+1 -1
+1 -1
View File
@@ -861,7 +861,7 @@ class ProductQuantitiesByWarehouseMove(ModelSQL, ModelView):
& 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