[FIX] base: do not traceback when removing country code

bzr revid: xal@openerp.com-20131217092010-p7mbiu1057e2v96z
This commit is contained in:
Xavier ALT 2013-12-17 10:20:10 +01:00
commit e7c1baa4d4
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ addresses belonging to this country.\n\nYou can use the python-style string pate
context=context)
def write(self, cursor, user, ids, vals, context=None):
if 'code' in vals:
if vals.get('code'):
vals['code'] = vals['code'].upper()
return super(Country, self).write(cursor, user, ids, vals,
context=context)