diff options
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/controllers/main.py | 2 | ||||
| -rw-r--r-- | addons/web/static/src/js/action_manager.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index db96b229829..1f95983c1ef 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -581,7 +581,7 @@ class WebClient(http.Controller): def version_info(self): return odoo.service.common.exp_version() - @http.route('/web/tests', type='http', auth="none") + @http.route('/web/tests', type='http', auth="user") def index(self, mod=None, **kwargs): return request.render('web.qunit_suite') diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index e05ee1d0da4..a31b0900863 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -865,7 +865,7 @@ var ActionManager = Widget.extend({ }); }); }, - ir_actions_act_url: function (action) { + ir_actions_act_url: function (action, options) { var url = action.url; if (session.debug && url && url.length && url[0] === '/') { url = $.param.querystring(url, {debug: session.debug}); @@ -876,6 +876,7 @@ var ActionManager = Widget.extend({ return $.Deferred(); // The action is finished only when the redirection is done } else { window.open(url, '_blank'); + options.on_close(); } return $.when(); }, |
