[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:
Ravish Murari 2014-08-07 18:04:42 +05:30 committed by Martin Trigaux
parent 73546f70ca
commit bc3991b4c5
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}