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:
@@ -156,7 +156,7 @@ class Amendment(Workflow, ModelSQL, ModelView):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def _stock_moves(cls, line):
|
def _stock_moves(cls, line):
|
||||||
for move in line.moves:
|
for move in line.moves:
|
||||||
if move.state in {'staging', 'draft'}:
|
if move.state in {'staging', 'draft'} and not move.shipment:
|
||||||
yield move
|
yield move
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user