[FIX] write country if code is null
bzr revid: fp@openerp.com-20130224101924-6w1eit8a9w3wb9nk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user