summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-09-10 13:30:38 +0000
committerAaron Bohy <aab@odoo.com>2019-09-16 07:29:43 +0000
commit127be68cca0693b37a7213204c497c968d4f56db (patch)
tree3e67810a223fac87b910d748f9009935d16f9a91 /addons/web/static/src/js/chrome
parent2500db4213109465c8489d03e5e98d977a443df0 (diff)
[FIX] web: do not disable searchpanel on button clicked
Before this rev., the searchpanel was automatically disabled (not present) in actions obtained by following links or buttons (e.g. stat buttons). This rev. removes this constraint, but adds the possibiliy to disable it by setting key 'search_panel' to false in the context. Note that in this case, the active categories are never retrieved from the local storage (i.e. the last one set). If no default is given, 'All' is simply selected (no domain). Task 2069310
Diffstat (limited to 'addons/web/static/src/js/chrome')
-rw-r--r--addons/web/static/src/js/chrome/action_manager_act_window.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager_act_window.js b/addons/web/static/src/js/chrome/action_manager_act_window.js
index 1a08bf59a9a..6027e21bb42 100644
--- a/addons/web/static/src/js/chrome/action_manager_act_window.js
+++ b/addons/web/static/src/js/chrome/action_manager_act_window.js
@@ -697,7 +697,7 @@ ActionManager.include({
};
}
var options = {on_close: ev.data.on_closed};
- action.flags = _.extend({}, action.flags, {withSearchPanel: false});
+ action.flags = _.extend({}, action.flags, {searchPanelDefaultNoFilter: true});
return self.doAction(action, options).then(ev.data.on_success, ev.data.on_fail);
});
},