summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils_mock.js
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-06-03 14:26:20 +0000
committerJeremy Kersten <jke@odoo.com>2019-06-05 05:56:33 +0000
commit72f7139f52a2702ced50730916fe3972bd2d8f09 (patch)
tree2b9aa97807d03dad4c175339d8027f63fa90859f /addons/web/static/tests/helpers/test_utils_mock.js
parent73327db0656bfdd2bce2a69ca1c5c07ad3d3b763 (diff)
[IMP] *: use new helper config.isDebug()
Before this commit, both config and session were aliases to odoo.debug. Now, config.isDebug() should be call, with possibility to pass a parameter to check if we are in a specific debug mode such as 'tests' or 'assets'. task-1934445 Coming with https://github.com/odoo/enterprise/pull/4281 Closes https://github.com/odoo/odoo/pull/33213
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils_mock.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils_mock.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/helpers/test_utils_mock.js b/addons/web/static/tests/helpers/test_utils_mock.js
index ccb4d20959e..0d452ddd195 100644
--- a/addons/web/static/tests/helpers/test_utils_mock.js
+++ b/addons/web/static/tests/helpers/test_utils_mock.js
@@ -173,7 +173,7 @@ function addMockEnvironment(widget, params) {
_.extend(config.device, params.config.device);
}
if ('debug' in params.config) {
- config.debug = params.config.debug;
+ odoo.debug = params.config.debug;
}
}
if ('translateParameters' in params) {