diff --git a/shipment.py b/shipment.py index 89029b0fe3..b90d4b0727 100644 --- a/shipment.py +++ b/shipment.py @@ -2217,8 +2217,8 @@ class PickingList(CompanyReport): from_location_ids.add(move.from_location.id) to_location_ids.add(move.to_location.id) - from_locations = Location.search(list(from_location_ids)) - to_locations = Location.search(list(to_location_ids)) + from_locations = Location.browse(list(from_location_ids)) + to_locations = Location.browse(list(to_location_ids)) return { 'from_location_ids': [l.id for l in from_locations], @@ -2264,8 +2264,8 @@ class SupplierRestockingList(CompanyReport): from_location_ids.add(move.from_location.id) to_location_ids.add(move.to_location.id) - from_locations = Location.search(list(from_location_ids)) - to_locations = Location.search(list(to_location_ids)) + from_locations = Location.browse(list(from_location_ids)) + to_locations = Location.browse(list(to_location_ids)) return { 'from_location_ids': [l.id for l in from_locations], @@ -2311,8 +2311,8 @@ class CustomerReturnRestockingList(CompanyReport): from_location_ids.add(move.from_location.id) to_location_ids.add(move.to_location.id) - from_locations = Location.search(list(from_location_ids)) - to_locations = Location.search(list(to_location_ids)) + from_locations = Location.browse(list(from_location_ids)) + to_locations = Location.browse(list(to_location_ids)) return { 'from_location_ids': [l.id for l in from_locations], @@ -2358,8 +2358,8 @@ class InteralShipmentReport(CompanyReport): from_location_ids.add(move.from_location.id) to_location_ids.add(move.to_location.id) - from_locations = Location.search(list(from_location_ids)) - to_locations = Location.search(list(to_location_ids)) + from_locations = Location.browse(list(from_location_ids)) + to_locations = Location.browse(list(to_location_ids)) return { 'from_location_ids': [l.id for l in from_locations],