Hello Nicolas,
This is clearly problem of web-client, also it's generic issue. Same problem
occrus on "Profit and Loss " report.
Would you please check it lp:1016481.
Problem is occurs only when report's action name doesn't contains the report
name and those type of all report gives this same error. As per as I concern it
should be fixed controllers/main.py file 's line#1817-1821.
if 'name' not in action:
- reports = req.session.model('ir.actions.report.xml')
- res_id = reports.search([('report_name',
'=',action['report_name']),],
0, False, False, context)
+ action['name'] = action['report_name']
Because report_name is gives directly the name of report, So I think we
should not search again action['report_name']. So we have to remove it
and use only action['name'] = action['report_name'] it will solve the
problem.
So as per our analysis we should be fix this form web side, That's why I
am again assign this issue to webteam.
Thanks for understanding!
** Project changed: openobject-addons => openerp-web
** Changed in: openerp-web
Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) => OpenERP R&D
Web Team (openerp-dev-web)
** Summary changed:
- can't payment pos order
+ When report's action doesn't have report name it gives a error of list index
out of range
--
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/1010377
Title:
When report's action doesn't have report name it gives a error of list
index out of range
Status in OpenERP Web:
Confirmed
Bug description:
:-->on runbut: (Build 10480)
server (4188)
addons (6876)
web (2525)
step to reproduce ---<>|
==> create a pos order and payment it
==> it will open a payment wizard then select journal and amount and click
make payment
So it's give a traceback like
Client Traceback (most recent call last):
File
"/home/odoo/runbot/static/openerp-dev-trunk-10480/server/openerp/addons/web/common/http.py",
line 260, in dispatch
r = method(controller, self, **self.params)
File
"/home/odoo/runbot/static/openerp-dev-trunk-10480/server/openerp/addons/web/controllers/main.py",
line 1812, in index
action['name'] = reports.read(res_id, ['name'], context)[0]['name']
IndexError: list index out of range
Thanks.
Mayur
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/1010377/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp