diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index 9ee15a760e8e..fd2766e348dd 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -197,8 +197,8 @@ def _create_moves(self, picking): def _get_move_values(self, picking, lines): # locations are same for the products - location_from_id = lines[0].origin_location_id.id - location_to_id = lines[0].destination_location_id.id + location_from_id = self.origin_location_id.id + location_to_id = self.destination_location_id.id product = lines[0].product_id product_uom_id = lines[0].product_uom_id.id qty = sum([x.move_quantity for x in lines])