name journal when bank account number does not exist

bzr revid: jco@openerp.com-20130129124151-ywtwxgpu4ciwl9sp
This commit is contained in:
Josse Colpaert 2013-01-29 13:41:51 +01:00
parent b323194275
commit 02908db002
1 changed files with 1 additions and 1 deletions

View File

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