summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-06-29 14:47:45 +0000
committerXavier Dubuc <xdu@odoo.com>2020-06-29 18:52:11 +0000
commit65c71a5a7ab55c9b3b5c256d98d92006ae4d27e3 (patch)
tree10bbe1d8f1da031a8f7cf872b5008d78fa8c9ef7 /addons/web/static/src/js
parentc3080e54ed88092815acbec628c77253fbd6616b (diff)
[FIX] web: fix do-action handler so it calls web_client do_action
The do-action handler added was calling directly doAction method of action_manager which lead to an issue in enterprise as the override taking care of closing home menu in web_enterprise/do_action was no more called. This commit fixes that by calling the do_action method of abstract_web_client and thus the override to be executed. Originally detected in task-2282273 closes odoo/odoo#53836 X-original-commit: 7949baf08b7e07cb5f25f1a42b4eb12ed3a65a64 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/chrome/abstract_web_client.js2
1 files changed, 1 insertions, 1 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 39da829f209..c34e020a17b 100644
--- a/addons/web/static/src/js/chrome/abstract_web_client.js
+++ b/addons/web/static/src/js/chrome/abstract_web_client.js
@@ -209,7 +209,7 @@ var AbstractWebClient = Widget.extend(KeyboardNavigationMixin, {
var self = this;
this.action_manager = new ActionManager(this, session.user_context);
this.env.bus.on('do-action', this, payload => {
- this.action_manager.doAction(payload.action, payload.options)
+ this.do_action(payload.action, payload.options || {})
.then(payload.on_success || (() => {}))
.guardedCatch(payload.on_fail || (() => {}));
});