COA Creation wizard hangs up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
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/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
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.
if not ids:
Related branches
- Raphael Collet (OpenERP) (community): Approve
- DJ Patel (OpenERP) (community): Needs Resubmitting
- Purnendu Singh (OpenERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 22 lines (+5/-4)1 file modifiedaccount/account.py (+5/-4)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello Gustavo Adrian Marino,
Thanks for reporting and contribution. The solution for this bug is proposed in the branch : https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-bug- 923884- mdi/
with following Revision ID and Number.
Revision ID : <email address hidden>
Revision Number : 6468
Thanks and Regards,
Divyesh Makwana(MDI)