Skip to content

Commit

Permalink
Merge PR #394 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Dec 12, 2019
2 parents 887be3f + ed53a79 commit 31d2102
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 175 deletions.
29 changes: 16 additions & 13 deletions agreement_legal/static/src/js/domain_widget_ext.js
Expand Up @@ -17,10 +17,10 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
// Add Additional options
this.partialUse = this.nodeOptions.partial_use || false;
},
//--------------------------------------------------------------------------

//----------------------------------------------------------------------
// Private
//--------------------------------------------------------------------------
//----------------------------------------------------------------------

/**
* @private
Expand All @@ -37,15 +37,17 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
// Convert char value to array 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;
if (!this.domainSelector) {
this.domainSelector = new DomainSelector(this, this._domainModel, value, {
readonly: this.mode === "readonly" || this.inDialog,
filters: this.fsFilters,
debugMode: session.debug,
partialUse: this.partialUse || false,
});
this.domainSelector = new DomainSelector(
this, this._domainModel, value, {
readonly: this.mode === "readonly" || this.inDialog,
filters: this.fsFilters,
debugMode: session.debug,
partialUse: this.partialUse || false,
});
def = this.domainSelector.prependTo(this.$el);
} else {
def = this.domainSelector.setDomain(value);
Expand All @@ -54,9 +56,10 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
return def.then(this._replaceContent.bind(this));
},
/**
* Render the field DOM except for the domain selector part. The full field
* DOM is composed of a DIV which contains the domain selector widget,
* followed by other content. This other content is handled by this method.
* Render the field DOM except for the domain selector part. The full
* field DOM is composed of a DIV which contains the domain selector
* widget, followed by other content. This other content is handled by
* this method.
*
* @private
*/
Expand Down

0 comments on commit 31d2102

Please sign in to comment.