[FIX] board: Do not offer to create dashboard when there is no action
In case we have no defined action (e.g. redirection by python code), adding a dashboard should not be possible as the rendering based on the action. This patch hides the 'Add to Dashboard' button in search view (opw 611288)
This commit is contained in:
parent
73546f70ca
commit
bc3991b4c5
|
@ -424,7 +424,7 @@ instance.web.SearchView.include({
|
|||
add_common_inputs: function() {
|
||||
this._super();
|
||||
var vm = this.getParent().getParent();
|
||||
if (vm.inner_action && vm.inner_action.views) {
|
||||
if (vm.inner_action && vm.inner_action.id && vm.inner_action.views) {
|
||||
(new instance.board.AddToDashboard(this));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue