diff --git a/base_location/__openerp__.py b/base_location/__openerp__.py index 682a4d90b..6ed991501 100644 --- a/base_location/__openerp__.py +++ b/base_location/__openerp__.py @@ -20,7 +20,7 @@ # ############################################################################## {'name': 'Location management (aka Better ZIP)', - 'version': '0.3', + 'version': '0.3.1', 'depends': ['base'], 'author': 'Camptocamp', 'description': """ diff --git a/base_location/better_zip.py b/base_location/better_zip.py index 562a842e3..3ab561245 100644 --- a/base_location/better_zip.py +++ b/base_location/better_zip.py @@ -42,7 +42,7 @@ class BetterZip(orm.Model): def name_get(self, cursor, uid, ids, context=None): res = [] - for bzip in self.browse(cursor, uid, ids): + for bzip in self.browse(cursor, uid, ids, context=context): if bzip.name: name = [bzip.name, bzip.city] else: