details:   https://code.tryton.org/tryton/commit/3beb525180a2
branch:    7.4
user:      Cédric Krier <[email protected]>
date:      Thu Oct 02 10:44:10 2025 +0200
description:
        Do not update measurements of all shipments for empty list

        Closes #14271
        (grafted from 024bc2889142e356ebfbf3b995c2388a1b4bedc3)
diffstat:

 modules/stock_shipment_measurements/stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 28fc4837705b -r 3beb525180a2 
modules/stock_shipment_measurements/stock.py
--- a/modules/stock_shipment_measurements/stock.py      Fri Sep 19 09:12:53 
2025 +0200
+++ b/modules/stock_shipment_measurements/stock.py      Thu Oct 02 10:44:10 
2025 +0200
@@ -305,7 +305,7 @@
                         & (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 = (

Reply via email to