From 6a20d549932c17d3b027bf5bd7889511ae23c6a9 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 14 Oct 2019 13:07:03 +0200 Subject: [PATCH 1/2] [FIX] agreement_legal: lint warnings --- .../static/src/js/domain_widget_ext.js | 29 +- .../static/src/xml/domain_widget_view.xml | 320 +++++++++--------- 2 files changed, 176 insertions(+), 173 deletions(-) diff --git a/agreement_legal/static/src/js/domain_widget_ext.js b/agreement_legal/static/src/js/domain_widget_ext.js index 11da12f6..adfedb43 100644 --- a/agreement_legal/static/src/js/domain_widget_ext.js +++ b/agreement_legal/static/src/js/domain_widget_ext.js @@ -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 @@ -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); @@ -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 */ diff --git a/agreement_legal/static/src/xml/domain_widget_view.xml b/agreement_legal/static/src/xml/domain_widget_view.xml index 580d1a2e..42694253 100644 --- a/agreement_legal/static/src/xml/domain_widget_view.xml +++ b/agreement_legal/static/src/xml/domain_widget_view.xml @@ -1,179 +1,179 @@ - - -
- -
-
- -
- - - - Invalid domain - - -
-
Select a model to add a filter.
-
-
+ + +
+ +
+
+ +
+ + + + Invalid domain + + +
+
Select a model to add a filter.
- -
- Please navigate below and select field: - - SSMatch records with - - of the following rules: - -
- -
- - - - - Match all records - - - -
- Match records with the following rule: - - Match records with - - of the following rules: - -
- -
- - - - -
- - - - - - - -
- -
- - -
- -
-
- - +
+ + + SMatch all records + - -
- - - -
-
- -
-
- - - +
+ Please navigate below and select field: + + SSMatch records with + + of the following rules: + +
+ +
-
-
-
-
- - - - "" - - - - "" - or + + + Match all records + + + +
+ Match records with the following rule: + + Match records with + + of the following rules: + +
+ +
+ + - - - +
+ + + - - is - not - set + + -
-
-
-
- -
- -
-
-
- -
- +
+ + +
+ + +
+ +
+
+ + + + + +
+ + + +
+
+ +
+
+ + + +
+
+
-
-
    +
    + + + + "" + + + + + "" + or + + + + + + + + is + not + set +
    - +
    +
    + +
    + +
    +
    +
    +
    + +
    + +
    +
    +
      +
    +
    -
    - \ No newline at end of file + From ed53a79a70c4633137638bb1312c7a1aabf89bed Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 14 Oct 2019 13:20:11 +0200 Subject: [PATCH 2/2] [FIX] add missing newlines in readme files --- contract_sale_invoicing/readme/DESCRIPTION.rst | 2 +- contract_variable_quantity/readme/CONFIGURE.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract_sale_invoicing/readme/DESCRIPTION.rst b/contract_sale_invoicing/readme/DESCRIPTION.rst index 0d5fe5f9..a3c42315 100644 --- a/contract_sale_invoicing/readme/DESCRIPTION.rst +++ b/contract_sale_invoicing/readme/DESCRIPTION.rst @@ -1,3 +1,3 @@ This modules allows to include on the same invoice than the recurring invoice contract, all the pending to invoice sales orders that you have with the same -analytic account. \ No newline at end of file +analytic account. diff --git a/contract_variable_quantity/readme/CONFIGURE.rst b/contract_variable_quantity/readme/CONFIGURE.rst index 547b2d69..73ff8a37 100644 --- a/contract_variable_quantity/readme/CONFIGURE.rst +++ b/contract_variable_quantity/readme/CONFIGURE.rst @@ -13,4 +13,4 @@ .. figure:: images/formula_form.png :alt: Formula form - :width: 600 px \ No newline at end of file + :width: 600 px