From e87a391ed47367e9447742c0799f817a871ae5d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 7 Sep 2026 15:24:40 +0200 Subject: [PATCH] Do not clear incoming moves that has been added to a shipment for amendment Closes #15070 (grafted from fb713c8a996ea659217e194c87246f1067c7fb99) --HG-- branch : 8.0 --- modules/purchase_amendment/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_amendment/purchase.py b/modules/purchase_amendment/purchase.py index 9d4cbea2e0..64474f1fcc 100644 --- a/modules/purchase_amendment/purchase.py +++ b/modules/purchase_amendment/purchase.py @@ -156,7 +156,7 @@ class Amendment(Workflow, ModelSQL, ModelView): @classmethod def _stock_moves(cls, line): for move in line.moves: - if move.state in {'staging', 'draft'}: + if move.state in {'staging', 'draft'} and not move.shipment: yield move