From 65c71a5a7ab55c9b3b5c256d98d92006ae4d27e3 Mon Sep 17 00:00:00 2001 From: Xavier Dubuc Date: Mon, 29 Jun 2020 14:47:45 +0000 Subject: [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) --- addons/web/static/src/js/chrome/abstract_web_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js') 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 || (() => {})); }); -- cgit v1.2.3