[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
This commit is contained in:
committed by
Jeremy Kersten
parent
73327db065
commit
72f7139f52
@@ -8,6 +8,7 @@ odoo.define('web.basic_fields', function (require) {
|
||||
*/
|
||||
|
||||
var AbstractField = require('web.AbstractField');
|
||||
var config = require('web.config');
|
||||
var core = require('web.core');
|
||||
var crash_manager = require('web.crash_manager');
|
||||
var datepicker = require('web.datepicker');
|
||||
@@ -2770,7 +2771,7 @@ var FieldDomain = AbstractField.extend({
|
||||
this.domainSelector = new DomainSelector(this, this._domainModel, value, {
|
||||
readonly: this.mode === "readonly" || this.inDialog,
|
||||
filters: this.fsFilters,
|
||||
debugMode: session.debug,
|
||||
debugMode: config.isDebug(),
|
||||
});
|
||||
def = this.domainSelector.prependTo(this.$el);
|
||||
} else {
|
||||
@@ -2859,7 +2860,7 @@ var FieldDomain = AbstractField.extend({
|
||||
new DomainSelectorDialog(this, this._domainModel, this.value || "[]", {
|
||||
readonly: this.mode === "readonly",
|
||||
filters: this.fsFilters,
|
||||
debugMode: session.debug,
|
||||
debugMode: config.isDebug(),
|
||||
}).open();
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user