[FIX] board: correctly handle invalid actions
This may happen when a dashboard contain references to deleted actions.
This commit is contained in:
parent
1246680756
commit
f9fa39a8c0
|
@ -173,6 +173,8 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
|
|||
action = result,
|
||||
view_mode = action_attrs.view_mode;
|
||||
|
||||
if (!action) { return; }
|
||||
|
||||
// evaluate action_attrs context and domain
|
||||
action_attrs.context_string = action_attrs.context;
|
||||
action_attrs.context = instance.web.pyeval.eval(
|
||||
|
|
Loading…
Reference in New Issue