[FIX] stock: _action_confirm on confirmed move

task-2241471
This commit is contained in:
Simon Lejeune
2020-06-15 16:59:41 +02:00
parent bffd343d5a
commit b435508fcf
+2
View File
@@ -1013,6 +1013,8 @@ class StockMove(models.Model):
to_assign = {}
for move in self:
if move.state != 'draft':
continue
# if the move is preceeded, then it's waiting (if preceeding move is done, then action_assign has been called already and its state is already available)
if move.move_orig_ids:
move_waiting |= move