Do not clear incoming moves that has been added to a shipment for amendment

Closes #15070
(grafted from fb713c8a996ea659217e194c87246f1067c7fb99)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-09-07 15:24:40 +02:00
parent 60774f0d0a
commit e87a391ed4
+1 -1
View File
@@ -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