diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 08a9fc9c7a4..0af3341055f 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -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