[FIX] account : COA Creation wizard hangs up

lp bug: https://launchpad.net/bugs/923884 fixed

bzr revid: mdi@tinyerp.com-20120202085255-jpuv9x6i33nnjp8f
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-02-02 14:22:55 +05:30
parent 1928854809
commit 858758af47
1 changed files with 1 additions and 1 deletions

View File

@ -3358,7 +3358,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
# and the next number for account code might have been already used before for journal
journal_count = 0
while True:
journal_code = _('BNK') + str(current_num + journal_count)
journal_code = _('BNK')[:3] + str(current_num + journal_count)
ids = obj_journal.search(cr, uid, [('code', '=', journal_code), ('company_id', '=', company_id)], context=context)
if not ids:
break