diff --git a/base_location/better_zip.py b/base_location/better_zip.py
index 8d6d01614..562a842e3 100644
--- a/base_location/better_zip.py
+++ b/base_location/better_zip.py
@@ -30,7 +30,7 @@ class BetterZip(orm.Model):
_order = "priority"
_columns = {'priority': fields.integer('Priority', deprecated=True),
- 'name': fields.char('ZIP', required=True),
+ 'name': fields.char('ZIP'),
'city': fields.char('City', required=True),
'state_id': fields.many2one('res.country.state', 'State'),
'country_id': fields.many2one('res.country', 'Country'),
@@ -43,7 +43,10 @@ class BetterZip(orm.Model):
def name_get(self, cursor, uid, ids, context=None):
res = []
for bzip in self.browse(cursor, uid, ids):
- name = [bzip.name, bzip.city]
+ if bzip.name:
+ name = [bzip.name, bzip.city]
+ else:
+ name = [bzip.city]
if bzip.state_id:
name.append(bzip.state_id.name)
if bzip.country_id:
diff --git a/base_location/better_zip_view.xml b/base_location/better_zip_view.xml
index 0fc8d11de..de67ec1af 100644
--- a/base_location/better_zip_view.xml
+++ b/base_location/better_zip_view.xml
@@ -33,12 +33,24 @@
+
+ res.better.zip.select
+ res.better.zip
+
+
+
+
+
+
+
+
Cites/locations Management
res.better.zip
form
tree,form
+