[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-25 12:03:12 +02:00
committed by Martin Trigaux
parent 73546f70ca
commit bc3991b4c5
+1 -1
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));
}
}