summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-06-03 14:26:11 +0000
committerJeremy Kersten <jke@odoo.com>2019-06-05 05:56:33 +0000
commit3c37e0e1100c77a1e344f5153be756f12c3c777b (patch)
tree159452dd58859c51da9fe98cb572d371aa42925b /addons/web/static/src/js/services
parentcd4cd5172153ac5c032c8dbe323d82758ed4c487 (diff)
[IMP] web, web_tour, website, point_of_sale: adapt code to new debug
As now the debug state is stored in session, the JS framework code and some templates needed some changes. First, the debug state is retrieved from session and not the URL anymore. Second, the debug state does not need to be forwarded as it is now persistent. task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213
Diffstat (limited to 'addons/web/static/src/js/services')
-rw-r--r--addons/web/static/src/js/services/config.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/web/static/src/js/services/config.js b/addons/web/static/src/js/services/config.js
index 60a3dea28d4..918067f447f 100644
--- a/addons/web/static/src/js/services/config.js
+++ b/addons/web/static/src/js/services/config.js
@@ -10,19 +10,13 @@ odoo.define('web.config', function () {
* this file someday.
*/
-var debugParam = $.deparam($.param.querystring()).debug;
-var debug = false;
-if (debugParam !== undefined) {
- debug = debugParam === 'assets' ? 'assets' : true;
-}
-
var config = {
/**
* debug can be either a boolean, or the special value 'assets'
*
* @type boolean|string
*/
- debug: debug,
+ debug: odoo.debug,
device: {
/**
* touch is a boolean, true if the device supports touch interaction