From b435508fcfb07ac9877bd200260c4d9fa6799da2 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 4 Jun 2020 15:40:06 +0200 Subject: [PATCH] [FIX] stock: _action_confirm on confirmed move task-2241471 --- addons/stock/models/stock_move.py | 2 ++ 1 file changed, 2 insertions(+) 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