Merge PR #394 into 12.0

Signed-off-by max3903
This commit is contained in:
OCA-git-bot
2019-12-12 15:51:47 +00:00
4 changed files with 182 additions and 179 deletions

View File

@@ -18,9 +18,9 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
this.partialUse = this.nodeOptions.partial_use || false; this.partialUse = this.nodeOptions.partial_use || false;
}, },
//-------------------------------------------------------------------------- //----------------------------------------------------------------------
// Private // Private
//-------------------------------------------------------------------------- //----------------------------------------------------------------------
/** /**
* @private * @private
@@ -37,10 +37,12 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
// Convert char value to array value // Convert char value to array value
var value = this.value || "[]"; var value = this.value || "[]";
// Create the domain selector or change the value of the current one... // Create the domain selector or change the value of the current
// one...
var def; var def;
if (!this.domainSelector) { if (!this.domainSelector) {
this.domainSelector = new DomainSelector(this, this._domainModel, value, { this.domainSelector = new DomainSelector(
this, this._domainModel, value, {
readonly: this.mode === "readonly" || this.inDialog, readonly: this.mode === "readonly" || this.inDialog,
filters: this.fsFilters, filters: this.fsFilters,
debugMode: session.debug, debugMode: session.debug,
@@ -54,9 +56,10 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
return def.then(this._replaceContent.bind(this)); return def.then(this._replaceContent.bind(this));
}, },
/** /**
* Render the field DOM except for the domain selector part. The full field * Render the field DOM except for the domain selector part. The full
* DOM is composed of a DIV which contains the domain selector widget, * field DOM is composed of a DIV which contains the domain selector
* followed by other content. This other content is handled by this method. * widget, followed by other content. This other content is handled by
* this method.
* *
* @private * @private
*/ */