Fix for new view_header_get must return string for issue766

This commit is contained in:
Cédric Krier committed 2009-02-02 13:12:56 +01:00
1 parent 23ffac8664
commit 348d134cb7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ class Location(OSV):
uom_name = uom_obj.name_get(cursor, user, product.default_uom.id,
context=context)[0][1]
return value + ': ' + product_name + ' (' + uom_name + ')'
return False
return value
def _set_warehouse_parent(self, cursor, user, locations, context=None):
'''
+1 -1
View File
@@ -468,7 +468,7 @@ class Product(OSV):
def view_header_get(self, cursor, user, value, view_type='form',
context=None):
if not context.get('locations'):
return False
return value
location_obj = self.pool.get('stock.location')
locations = location_obj.browse(cursor, user, context.get('locations'),
context=context)