diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-02 13:20:04 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-02 13:20:04 +0100 |
| commit | e336dc38ca4be16197fa24e03e37e9db5d94d322 (patch) | |
| tree | b935f1d4264f09764b14933e29821fee6a341d40 /addons/web/static/src/js | |
| parent | 43487b73d6d66eb6ffb8993e6f9e739f2c0dd97e (diff) | |
| parent | 62aa3be24cdfebc2537c98e767fdb8dfe0abcf1d (diff) | |
[MERGE] forward port branch 9.0 up to 62aa3be24cd
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/action_manager.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); }, |
