openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14808
[Bug 1038918] Re: [trunk] Traceback on clicking "View Invoice" button
** Changed in: openobject-addons
Status: Confirmed => In Progress
--
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/1038918
Title:
[trunk] Traceback on clicking "View Invoice" button
Status in OpenERP Addons (modules):
In Progress
Bug description:
Hello,
I have installed sale and account_cancel modules. I am getting a
traceback after following the following steps:
1) Create a Sale Order and Confirm.
2) Open invoice, validate it & cancel.
3) Go to sale orders and Open SO.
4) Recreate Invoice. Click on "View Invoice" button, gives following traceback.
Client Traceback (most recent call last):
File "/home/uco/workspace/rdtools/web/trunk/addons/web/common/http.py", line 181, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/uco/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 1186, in call_button
return {'result': clean_action(req, action)}
File "/home/uco/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 425, in clean_action
return fix_view_modes(action)
File "/home/uco/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 485, in fix_view_modes
generate_views(action)
File "/home/uco/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 461, in generate_views
view_modes, view_id, action))
ValueError: Non-db action dictionaries should provide either multiple view modes or a single view mode and an optional view id.
Got view modes ['tree', 'form'] and view id 413 for action {'name':
u'Cutomer Invoice', 'view_type': 'form', 'res_model':
'account.invoice', 'view_id': 413, 'nodestroy': True, 'view_mode':
'tree,form', 'res_id': [4, 5], 'flags': {}, 'context':
{'journal_type': 'sale', 'type': 'out_invoice'}, 'type':
'ir.actions.act_window', 'target': 'current'}
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1038918/+subscriptions
References