Skip to content

Commit

Permalink
Fix name_get of geo NPA
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Oct 24, 2016
1 parent dba09a4 commit c8ac78a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions base_geoengine_demo/__manifest__.py
Expand Up @@ -2,7 +2,7 @@
# Copyright 2011-2012 Nicolas Bessi (Camptocamp SA)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{'name': 'Geo spatial support Demo',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GeoBI',
'author': "Camptocamp,Odoo Community Association (OCA)",
'license': 'AGPL-3',
Expand All @@ -17,6 +17,6 @@
'data/npa_geom.xml',
'security/ir.model.access.csv'
],
'installable': False,
'installable': True,
'application': True,
}
6 changes: 3 additions & 3 deletions base_geoengine_demo/models/geo_npa.py
Expand Up @@ -48,8 +48,8 @@ def _get_ZIP_total_sales(self):
else:
rec.total_sales = 0.0

def name_get(self, cursor, uid, ids, context=None):
def name_get(self):
res = []
for r in self.browse(cursor, uid, ids):
res.append((r.id, u"%s %s" % (r.name, r.city)))
for rec in self:
res.append((rec.id, u"%s %s" % (rec.name, rec.city)))
return res

0 comments on commit c8ac78a

Please sign in to comment.