From b7a617e697b5ae2eab1b7c04f7dcbd833043c389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 18 Aug 2023 14:47:39 +0200 Subject: [PATCH] Store synchronized moves of customer shipment even when quantity is not updated ed41959390ff added a synchronization on assign to prevent infinite warning loop on pack if it creates new move without origin. But 38e2a76db719 refactoring lost this behavior. Closes #12503 (grafted from 903204d5d1728e818ec44bf5aa0a629c2efd1a65) --HG-- branch : 6.0 --- modules/stock/shipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stock/shipment.py b/modules/stock/shipment.py index d63c027d79..6c2182dab5 100644 --- a/modules/stock/shipment.py +++ b/modules/stock/shipment.py @@ -1407,7 +1407,7 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): move.uom) if quantity and move.quantity != qty: move.quantity = qty - moves.append(move) + moves.append(move) Move.save(moves) @classmethod