[FIX] stock: don't assign immediate transfer in comfirm

Missing part of #44947 of task 2160847

closes odoo/odoo#45922

X-original-commit: 367d236a974b1b726a770e58a03344a3d83fa49f
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
yhu-odoo
2020-02-21 11:53:21 +00:00
parent 574d7f0d4c
commit 839e14ee09
+1 -1
View File
@@ -1020,7 +1020,7 @@ class StockMove(models.Model):
if merge:
moves = self._merge_moves(merge_into=merge_into)
# call `_action_assign` on every confirmed move which location_id bypasses the reservation
moves.filtered(lambda move: move._should_bypass_reservation() and move.state == 'confirmed')._action_assign()
moves.filtered(lambda move: not move.picking_id.immediate_transfer and move._should_bypass_reservation() and move.state == 'confirmed')._action_assign()
return moves
def _prepare_procurement_values(self):