[FIX] write country if code is null

bzr revid: fp@openerp.com-20130224101924-6w1eit8a9w3wb9nk
This commit is contained in:
Fabien Pinckaers
2013-02-24 11:19:24 +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', False):
vals['code'] = vals['code'].upper()
return super(Country, self).write(cursor, user, ids, vals,
context=context)