Do not update measurements of all shipments for empty list

Closes #14271
This commit is contained in:
Cédric Krier
2025-10-02 10:44:10 +02:00
parent 5d6ec458c7
commit f325924717
+1 -1
View File
@@ -281,7 +281,7 @@ class MeasurementsMixin(object):
& (move.state != 'cancelled'))],
where=table.state.in_(states)))
if shipments:
if shipments is not None:
where = query.where
for sub_shipments in grouped_slice(shipments):
query.where = (