Unknown action types should be ignored instead of crashing the dashboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D |
Bug Description
If a new action type is created and used in a dashboard, instead of simply ignoring the new (and unknown to the GTK client) action type and either not displaying anything in its place or putting some kind of empty placeholder (similar to unknown view types), the GTK client simply refuses to display the dashboard at all and prints the following traceback to stdout:
Traceback (most recent call last):
File "bin/modules/
if not self.sig_
File "bin/modules/
warning=
File "bin/modules/
self.
File "bin/modules/
limit=
File "bin/modules/
auto_
File "bin/modules/
show_
File "bin/widget/
view = self.add_
File "bin/widget/
toolbar=
File "bin/widget/
view = parser.parse(self, root_node, self.fields, toolbar=toolbar, submenu=submenu, help=help)
File "bin/widget/
wid, child, buttons, on_write = widget.
File "bin/widget/
_, widgets, saws, on_write = self.parse(model, node, fields, paned=hp)
File "bin/widget/
widget, widgets, saws, on_write = self.parse(model, node, fields, paned=paned)
File "bin/widget/
container.
AttributeError: 'action' object has no attribute 'widget'
This behavior can be tested using the "client actions" server and addons branches:
https:/
https:/
It creates a "client" action type and adds one such action to the Administration dashboard. Trying to open the administration dashboard in the GTK client results in no visible UI action and the traceback above.
Hello Xavier,
I have checked your issue but I am not getting where you faced the problem.
Would you please elaborate more with screen shot or video so we can reproduce same at our end.
Thanks and waiting for your reply.