summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/action_manager.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-07-13 15:27:47 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-13 16:13:04 +0200
commit9b77d76e71a55bfc3caba6377cee6370941c5e65 (patch)
tree470e901498e6ffc3dce343f7f62730f7fbbbfadd /addons/web/static/src/js/action_manager.js
parent05a143a416fb3541d93de1b6f7bcb4c4c891cbf0 (diff)
[FIX] web,website,point_of_sale: session.debug value
Now that the debug URL parameter can be equal to "assets", the session debug variable has to be updated to not only be true or false. Now, its value is false if the debug parameter is not specified in the url and a the URL parameter string value otherwise (or 1 if the value is an empty string). Also modify all redirection which kept the debug mode to also keep =assets. Use the $.param.querystring function.
Diffstat (limited to 'addons/web/static/src/js/action_manager.js')
-rw-r--r--addons/web/static/src/js/action_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js
index 8d33f1ab4ac..ebf2429d2ab 100644
--- a/addons/web/static/src/js/action_manager.js
+++ b/addons/web/static/src/js/action_manager.js
@@ -835,7 +835,7 @@ 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');
+ url = $.param.querystring(url, {debug: session.debug});
}
if (action.target === 'self') {