summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhda (Tiny) <hda@tinyerp.com>2008-12-31 15:14:49 +0530
committerhda (Tiny) <hda@tinyerp.com>2008-12-31 15:14:49 +0530
commit26e5c8e26b3c28bc8a40d65d1eff33dab945dda1 (patch)
tree611cf57b66db9d808f6d7d7aecfaaa0e9758b121
parent10243911daeb29ee4592969fa74461149b153ebe (diff)
bugfix
bzr revid: hda@tinyerp.com-20081231094449-t31awtrkdc7vj1f8
-rw-r--r--addons/account/account.py4
1 files changed, 3 insertions, 1 deletions
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,