[FIX] l10n_ch : corrected default_value method
lp bug: https://launchpad.net/bugs/388346 fixed bzr revid: jvo@tinyerp.com-20090617134424-8ogp3u1r6eodmx7y
This commit is contained in:
parent
0b555a2325
commit
e19a5b0d6c
|
@ -67,7 +67,7 @@ class res_partner_bank(osv.osv):
|
|||
for ham, spam, address in context['address']:
|
||||
if 'type' in address.keys() :
|
||||
if address['type'] == 'default':
|
||||
return address[field]
|
||||
return address.get(field,False)
|
||||
elif not address['type']:
|
||||
value = address[field]
|
||||
else :
|
||||
|
|
Loading…
Reference in New Issue