Skip to content

Commit

Permalink
[FIX] stock: move line: create batch
Browse files Browse the repository at this point in the history
related to 896e36e

Fixes odoo#41813

closes odoo#46071

Signed-off-by: Simon Lejeune (sle) <[email protected]>
  • Loading branch information
sle-odoo committed Feb 24, 2020
1 parent 8795e0f commit e75bc03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/stock/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def create(self, vals_list):
vals['move_id'] = new_move.id
mls = super(StockMoveLine, self).create(vals_list)

for ml in mls:
for ml, vals in zip(mls, vals_list):
if ml.move_id and \
ml.move_id.picking_id and \
ml.move_id.picking_id.immediate_transfer and \
Expand All @@ -224,7 +224,6 @@ def create(self, vals_list):
next_moves = ml.move_id.move_dest_ids.filtered(lambda move: move.state not in ('done', 'cancel'))
next_moves._do_unreserve()
next_moves._action_assign()

return mls

def write(self, vals):
Expand Down

0 comments on commit e75bc03

Please sign in to comment.