summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/apps.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/src/js/apps.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/src/js/apps.js')
-rw-r--r--addons/web/static/src/js/apps.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/apps.js b/addons/web/static/src/js/apps.js
index 739317337ba..364401d4281 100644
--- a/addons/web/static/src/js/apps.js
+++ b/addons/web/static/src/js/apps.js
@@ -2,6 +2,7 @@ odoo.define('web.Apps', function (require) {
"use strict";
var AbstractAction = require('web.AbstractAction');
+var config = require('web.config');
var core = require('web.core');
var framework = require('web.framework');
var session = require('web.session');
@@ -111,8 +112,8 @@ var Apps = AbstractAction.extend({
self.client = client;
var qs = {db: client.dbname};
- if (session.debug) {
- qs.debug = session.debug;
+ if (config.isDebug()) {
+ qs.debug = odoo.debug;
}
var u = $.param.querystring(client.origin + "/apps/embed/client", qs);
var css = {width: '100%', height: '750px'};