summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2020-06-04 15:40:06 +0200
committerSimon Lejeune <sle@openerp.com>2020-06-15 16:59:41 +0200
commitb435508fcfb07ac9877bd200260c4d9fa6799da2 (patch)
tree0ec5ea0b047d44644c6e32fb985ae9fb316ed85e /addons
parentbffd343d5a48be7c4a8b25d5d7f08003d622dc3d (diff)
[FIX] stock: _action_confirm on confirmed move
task-2241471
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/models/stock_move.py2
1 files changed, 2 insertions, 0 deletions
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