diff options
| author | Romain Derie <rde@odoo.com> | 2019-10-08 09:47:26 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-10 08:56:22 +0000 |
| commit | 9bbf57f915784f97c74531bd8d3bc255319ed235 (patch) | |
| tree | 252fc8950395b9b672cecc730845a8be4efe289c /addons/web/static/src/js | |
| parent | bdb08d0bcc759ab7f31070392c45e29a8b9fe935 (diff) | |
[REM] web: remove unused controller /apps/<app>
This controller never really worked in the last 3 versions.
It was fixed in 11.3 with e9350993ca0 but broken with refactoring in 12.0 at a
higher level with 19eacf7d23c9.
It was even worse in 13.0 as it was leading to a traceback: `view_type` field
got removed with 3cd7ed07a29c8 but this controller was still reading that
field.
closes odoo/odoo#38355
X-original-commit: a5c4e262449fef03d05d5250e4523832db5fbf00
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/chrome/action_manager_act_window.js | 21 |
1 files changed, 5 insertions, 16 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 8034a8e54b8..5f3368038f2 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 @@ -58,11 +58,8 @@ ActionManager.include({ * @param {string} [state.view_type] */ loadState: function (state) { - var callersArguments = arguments; var _super = this._super.bind(this); - var self = this; var action; - var def; var options = { clear_breadcrumbs: true, pushState: false, @@ -117,20 +114,12 @@ ActionManager.include({ action = lastAction; options.viewType = state.view_type; } - } else if (state.sa) { - def = this._rpc({ - route: '/web/session/get_session_action', - params: {key: state.sa}, - }).then(function (sessionAction) { - action = sessionAction; - }); } - return Promise.all([def]).then(function () { - if (action) { - return self.doAction(action, options); - } - return _super.apply(self, callersArguments); - }); + if (action) { + return this.doAction(action, options); + } + return _super.apply(this, arguments); + }, //-------------------------------------------------------------------------- |
