summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome/abstract_web_client.js
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-03-11 09:38:28 +0000
committerJulien Mougenot <jum@odoo.com>2020-03-13 14:08:33 +0000
commit18e5416636b19b0953b1e6e26bfaeab1ebecce4c (patch)
tree5be75af26f1707a5b8b2184545719f3628d2980f /addons/web/static/src/js/chrome/abstract_web_client.js
parentfbf347498f1cc7b74ef373179b7bcae201715c24 (diff)
[REF] web: Adapt views/actions to new control panel
Some web actions/controllers/viewsl have been adapted to properly instantiate the newly refactored control panel and update it accordingly. We needed to adapt the starting mechanism of actions and controllers to ensure that the control panel instantiation did not delay the loading of any widget. Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/chrome/abstract_web_client.js')
-rw-r--r--addons/web/static/src/js/chrome/abstract_web_client.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/addons/web/static/src/js/chrome/abstract_web_client.js b/addons/web/static/src/js/chrome/abstract_web_client.js
index 8837ffe813e..9012b7f53fd 100644
--- a/addons/web/static/src/js/chrome/abstract_web_client.js
+++ b/addons/web/static/src/js/chrome/abstract_web_client.js
@@ -32,9 +32,7 @@ var _t = core._t;
var AbstractWebClient = Widget.extend(KeyboardNavigationMixin, {
dependencies: ['notification'],
- events: _.extend({}, KeyboardNavigationMixin.events, {
- 'click .o_search_options .dropdown-menu': '_onClickDropDownMenu',
- }),
+ events: _.extend({}, KeyboardNavigationMixin.events),
custom_events: {
call_service: '_onCallService',
clear_uncommitted_changes: function (e) {
@@ -357,16 +355,6 @@ var AbstractWebClient = Widget.extend(KeyboardNavigationMixin, {
payload.callback(result);
},
/**
- * When clicking inside a dropdown to modify search options
- * prevents the bootstrap dropdown to close on itself
- *
- * @private
- * @param {Event} ev
- */
- _onClickDropDownMenu: function (ev) {
- ev.stopPropagation();
- },
- /**
* Whenever the connection is lost, we need to notify the user.
*
* @private