[MERGE] account: safer handling of acc_number values
l10n_fr_rib makes the field not mandatory, which is kind of illegal. Short of changing that behavior, a quick fix is to be more lenient with missing acc_number values. lp bug: https://launchpad.net/bugs/1016690 fixed bzr revid: odo@openerp.com-20130131133011-bfzfzmjh049tg3kd
This commit is contained in:
commit
9b3e333d67
|
@ -41,7 +41,7 @@ class bank(osv.osv):
|
|||
|
||||
def _prepare_name(self, bank):
|
||||
"Return the name to use when creating a bank journal"
|
||||
return (bank.bank_name or '') + ' ' + bank.acc_number
|
||||
return (bank.bank_name or '') + ' ' + (bank.acc_number or '')
|
||||
|
||||
def _prepare_name_get(self, cr, uid, bank_dicts, context=None):
|
||||
"""Add ability to have %(currency_name)s in the format_layout of res.partner.bank.type"""
|
||||
|
|
Loading…
Reference in New Issue