[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:
VRA(Open ERP) 2009-06-17 19:14:24 +05:30 committed by Jay (Open ERP)
parent 0b555a2325
commit e19a5b0d6c
1 changed files with 1 additions and 1 deletions

View File

@ -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 :