bzr revid: hda@tinyerp.com-20081231094449-t31awtrkdc7vj1f8
This commit is contained in:
hda (Tiny) 2008-12-31 15:14:49 +05:30
parent 10243911da
commit 26e5c8e26b
1 changed files with 3 additions and 1 deletions

View File

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