credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #04632
[Bug 923884] Re: COA Creation wizard hangs up
** Changed in: openobject-addons
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/923884
Title:
COA Creation wizard hangs up
Status in OpenERP Addons (modules):
In Progress
Bug description:
In v6.1 trunk, when you try to create a COA based on a template, using
a locale that translates then name the name of the bank journal to
something with len >= 5 (the len of the field code in the journal)
(e.g. in spanish from 'BNK' to 'BANCO'), the wizards hangs due to the
unbounded loops used to find the next free name (it will be blocked in
an endless loop, freezing the client UI)
See :
=== modified file 'account/account.py'
--- account/account.py 2012-01-27 16:04:31 +0000
+++ account/account.py 2012-01-30 17:42:15 +0000
@@ -3346,7 +3350,10 @@
# 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)
+ #NUMA
+ #journal_code = _('BNK') + str(current_num + journal_count)
+ journal_code = _('BNK')[:4] + str(current_num + journal_count)
+
ids = obj_journal.search(cr, uid, [('code', '=', journal_code), ('company_id', '=', company_id)], context=context)
if not ids:
break
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/923884/+subscriptions
References