openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21858
[Bug 1098526] Re: account_renumber wizard error at showing results
Hello Equipo OPENTIA,
"account_renumber" module is a part of the extra-addons, which is
maintained by the another author. SO, Would you please contact to
related author of this module?
In the mean time, I am marking it as "Won't fix" to indicate that no
further progress is expected at the moment.
I hope you understand.
Thanks.
** Changed in: openobject-addons
Status: New => Won't Fix
** Summary changed:
- account_renumber wizard error at showing results
+ [Extra-addons]account_renumber wizard error at showing results
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1098526
Title:
[Extra-addons]account_renumber wizard error at showing results
Status in OpenERP Addons (modules):
Won't Fix
Bug description:
Revisions used for the test:
client-web: 4899
server: 3654
addons: 5409
extra-addons: 5904
How to reproduce the error:
1) Create a fresh database
2) Install account_renumber and all its dependencies:
account
account_renumber
analytic
board
decimal_precision
process
product
3) Configure accounting with the Generic Chart of Account
4) Configure a user with rights for accounting and running the wizard
5) Create a product
6) Create an invoice
7) Run:
ACCOUNTING > Periodical Processing > End of Period > Renumber Account Moves
8) Select all journals and all periods
9) Renumber
10) Show results
At this stage the system shows an exception:
==================================================================================================
Traceback (most recent call last):
File "/openerp/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/openerp/server/bin/service/web_services.py", line 636, in dispatch
res = fn(db, uid, *params)
File "/openerp/server/bin/service/web_services.py", line 663, in exp_execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/openerp/server/bin/service/web_services.py", line 645, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/openerp/server/bin/wizard/__init__.py", line 177, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/openerp/server/bin/wizard/__init__.py", line 72, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/openerp/extra-addons/account_renumber/wizard/wizard_renumber.py", line 159, in _renumber_action
period_ids = period_ids[0][2]
TypeError: 'int' object is unsubscriptable
==================================================================================================
The problem is that period_ids is being populated either by this
(before renumbering):
periods: [(6, 0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])]
journals: [(6, 0, [1, 5, 3, 2, 4])]
or by this (after renumberin):
periods: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
journals: [1, 5, 3, 2, 4]
so it is trying to index an element inside the first element of the
list, which is an integer
Attached is a patch (it is a workaround indeed) to extract the list only when it is inside the tuple
Greetings,
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1098526/+subscriptions
References