diff --git a/addons/web_shortcuts/static/src/js/web_shortcuts.js b/addons/web_shortcuts/static/src/js/web_shortcuts.js index 743f3fc73aa..c6d5a2f41fb 100644 --- a/addons/web_shortcuts/static/src/js/web_shortcuts.js +++ b/addons/web_shortcuts/static/src/js/web_shortcuts.js @@ -108,7 +108,7 @@ instance.web.UserMenu.include({ }); instance.web.ViewManagerAction.include({ - on_mode_switch: function (view_type, no_store) { + switch_mode: function (view_type, no_store) { var self = this; this._super.apply(this, arguments).then(function() { self.shortcut_check(self.views[view_type]);