From 7d7eb60f7529c9cd95a5818dbf65f8d43e737902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 22 Sep 2013 18:16:40 +0200 Subject: [PATCH] Fix typo search -> browse in reports --- shipment.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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],