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/tools/debug_manager.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/tools/debug_manager.js')
| -rw-r--r-- | addons/web/static/src/js/tools/debug_manager.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/tools/debug_manager.js b/addons/web/static/src/js/tools/debug_manager.js index e5eff8d7fc1..29fe1123e1f 100644 --- a/addons/web/static/src/js/tools/debug_manager.js +++ b/addons/web/static/src/js/tools/debug_manager.js @@ -83,7 +83,7 @@ var DebugManager = Widget.extend({ }, leave_debug_mode: function () { var qs = $.deparam.querystring(); - delete qs.debug; + qs.debug = ''; window.location.search = '?' + $.param(qs); }, /** * Calls the appropriate callback when clicking on a Debug option @@ -220,6 +220,9 @@ var DebugManager = Widget.extend({ split_assets: function() { window.location = $.param.querystring(window.location.href, 'debug=assets'); }, + tests_assets: function () { + window.location = $.param.querystring(window.location.href, 'debug=tests'); + }, /** * Delete assets bundles to force their regeneration * |
