Add rec_name to country.zip

This commit is contained in:
Jordi Esteve 2014-02-11 20:32:09 +01:00
parent 5fb21084c2
commit 86f942dd7c
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ __all__ = ['CountryZip']
class CountryZip(ModelSQL, ModelView):
"Country Zip"
__name__ = "country.zip"
'Country Zip'
__name__ = 'country.zip'
_rec_name = 'zip'
zip = fields.Char('Zip', required=True, select=1)
city = fields.Char('City', select=1)
subdivision = fields.Many2One('country.subdivision', 'Subdivision',