diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 47828768f1e..6be5cd8b26a 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -501,7 +501,7 @@ class Picking(models.Model): # As it is a create the format will be a list of (0, 0, dict) if vals.get('move_lines') and vals.get('location_id') and vals.get('location_dest_id'): for move in vals['move_lines']: - if len(move) == 3: + if len(move) == 3 and move[0] == 0: move[2]['location_id'] = vals['location_id'] move[2]['location_dest_id'] = vals['location_dest_id'] res = super(Picking, self).create(vals)