diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-01-15 13:57:23 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-01-15 15:24:09 +0100 |
| commit | 5a76586edec032c77edd1097edea107bdb2abc14 (patch) | |
| tree | be2931d4fc9a707c7841f25861b5845ededdf820 /addons/web/static/src/js | |
| parent | b9768c7022f399228639e53908531d64973f8ba5 (diff) | |
[IMP] web,point_of_sale: debug mode
Keep debug mode status when going on another location url (backend,
frontend, pos, ...).
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/action_manager.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index ec3441eee4c..9f435bf2c6b 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -788,10 +788,15 @@ var ActionManager = Widget.extend({ }); }, ir_actions_act_url: function (action) { + var url = action.url; + if (session.debug && url && url.length && url[0] === '/') { + url = $.param.querystring(url, 'debug'); + } + if (action.target === 'self') { - framework.redirect(action.url); + framework.redirect(url); } else { - window.open(action.url, '_blank'); + window.open(url, '_blank'); } return $.when(); }, |
