diff options
| author | Romain Derie <rde@odoo.com> | 2019-06-03 14:26:11 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-06-05 05:56:33 +0000 |
| commit | 3c37e0e1100c77a1e344f5153be756f12c3c777b (patch) | |
| tree | 159452dd58859c51da9fe98cb572d371aa42925b /addons/web/static/src/js/core/session.js | |
| parent | cd4cd5172153ac5c032c8dbe323d82758ed4c487 (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/core/session.js')
| -rw-r--r-- | addons/web/static/src/js/core/session.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/web/static/src/js/core/session.js b/addons/web/static/src/js/core/session.js index e083bb71e7f..c5a0b4610b4 100644 --- a/addons/web/static/src/js/core/session.js +++ b/addons/web/static/src/js/core/session.js @@ -305,9 +305,6 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, { var self = this; options = _.clone(options || {}); options.headers = _.extend({}, options.headers); - if (odoo.debug) { - options.headers["X-Debug-Mode"] = $.deparam($.param.querystring()).debug; - } // we add here the user context for ALL queries, mainly to pass // the allowed_company_ids key |
