From 26e5c8e26b3c28bc8a40d65d1eff33dab945dda1 Mon Sep 17 00:00:00 2001 From: "hda (Tiny)" Date: Wed, 31 Dec 2008 15:14:49 +0530 Subject: [PATCH] bugfix bzr revid: hda@tinyerp.com-20081231094449-t31awtrkdc7vj1f8 --- addons/account/account.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index f218e5b5bd7..c969496beae 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2070,10 +2070,12 @@ class wizard_multi_charts_accounts(osv.osv_memory): #create the account_account for this bank journal tmp = self.pool.get('res.partner.bank').name_get(cr, uid, [line.acc_no.id])[0][1] dig = obj_multi.code_digits + print ">>>>",dig + print ">>>",ref_acc_bank.code.ljust(dig,'0') vals={ 'name': line.acc_no.bank and line.acc_no.bank.name+' '+tmp or tmp, 'currency_id': line.currency_id and line.currency_id.id or False, - 'code': str(int(ref_acc_bank.code.ljust(dig,'0')) + current_num), + 'code': str(ref_acc_bank.code.ljust(dig,'0') + str(current_num)), 'type': 'other', 'user_type': account_template.user_type and account_template.user_type.id or False, 'reconcile': True,