Browse Source

[FIX] agreement_legal: lint warnings

pull/394/head
Alexandre Fayolle 5 years ago
parent
commit
6a20d54993
  1. 17
      agreement_legal/static/src/js/domain_widget_ext.js

17
agreement_legal/static/src/js/domain_widget_ext.js

@ -18,9 +18,9 @@ odoo.define('agreement_legal.domain_widget_ext', function (require) {
this.partialUse = this.nodeOptions.partial_use || false;
},
//--------------------------------------------------------------------------
//----------------------------------------------------------------------
// Private
//--------------------------------------------------------------------------
//----------------------------------------------------------------------
/**
* @private
@ -37,10 +37,12 @@ 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, {
this.domainSelector = new DomainSelector(
this, this._domainModel, value, {
readonly: this.mode === "readonly" || this.inDialog,
filters: this.fsFilters,
debugMode: session.debug,
@ -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
*/

Loading…
Cancel
Save