[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
+1 -1
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)