Fix typo search -> browse in reports

This commit is contained in:
Cédric Krier committed 2013-09-22 18:16:40 +02:00
1 parent e38fa24d06
commit 7d7eb60f75
1 file changed
+8 -8
+8 -8
View File
@@ -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],