Skip to content
Snippets Groups Projects
Commit 043f7b84 authored by Sandy Carter's avatar Sandy Carter Committed by Martin Trigaux
Browse files

[FIX] base: avoid having 'False' in name of a bank

The name_get of res.partner.bank uses the format_layout to generate the name
of the bank. As every field is not required, we may get 'False' in the name.
Replace these missing values by an empty string.

Fixes #3590
parent 2461baa0
Branches
Tags
No related merge requests found
......@@ -190,6 +190,7 @@ class res_partner_bank(osv.osv):
try:
if not data.get('bank_name'):
data['bank_name'] = _('BANK')
data = dict((k, v or '') for (k, v) in data.iteritems())
name = bank_code_format[data['state']] % data
except Exception:
raise osv.except_osv(_("Formating Error"), _("Invalid Bank Account Type Name format."))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment