Skip to content

Commit

Permalink
Greenify pre-commit by fixing the following pylint checks:
Browse files Browse the repository at this point in the history
pylint with optional checks..............................................Passed
- hook id: pylint
- duration: 61.46s

************* Module l10n_it_fatturapa
l10n_it_fatturapa/views/partner_view.xml:51: [W7940(dangerous-view-replace-wo-priority), ]  Dangerous use of "replace" from view with priority 0 < 99
************* Module l10n_it_abicab
l10n_it_abicab/views/abicab_view.xml:29: [W7940(dangerous-view-replace-wo-priority), ]  Dangerous use of "replace" from view with priority 0 < 99
************* Module l10n_it_intrastat_statement.models.intrastat_statement_purchase_section
l10n_it_intrastat_statement/models/intrastat_statement_purchase_section.py:58: [R7980(consider-merging-classes-inherited), IntrastatStatementPurchaseSection1] Consider merging classes inherited to "account.intrastat.statement.purchase.section" from intrastat_statement_purchase_section.py:212, intrastat_statement_purchase_section.py:357, intrastat_statement_purchase_section.py:428.
************* Module l10n_it_intrastat_statement.models.intrastat_statement_sale_section
l10n_it_intrastat_statement/models/intrastat_statement_sale_section.py:26: [R7980(consider-merging-classes-inherited), IntrastatStatementSaleSection1] Consider merging classes inherited to "account.intrastat.statement.sale.section" from intrastat_statement_sale_section.py:172, intrastat_statement_sale_section.py:300, intrastat_statement_sale_section.py:371.

pylint with mandatory checks.............................................Failed
- hook id: pylint
- exit code: 4

************* Module l10n_it_fatturapa
l10n_it_fatturapa/views/partner_view.xml:51: [W7940(dangerous-view-replace-wo-priority), ]  Dangerous use of "replace" from view with priority 0 < 99
************* Module l10n_it_abicab
l10n_it_abicab/views/abicab_view.xml:29: [W7940(dangerous-view-replace-wo-priority), ]  Dangerous use of "replace" from view with priority 0 < 99
  • Loading branch information
tafaRU committed Apr 2, 2022
1 parent ea63189 commit dfbe150
Show file tree
Hide file tree
Showing 14 changed files with 1,036 additions and 975 deletions.
5 changes: 4 additions & 1 deletion l10n_it_abicab/views/abicab_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
<field name="model">res.bank</field>
<field name="inherit_id" ref="base.view_res_bank_form" />
<field name="arch" type="xml">
<field name="bic" position="replace">
<field name="bic" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="name" position="after">
<group string="Bank Details" colspan="6">
<field name="abi" />
<field name="cab" />
Expand Down
4 changes: 3 additions & 1 deletion l10n_it_fatturapa/views/partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="l10n_it_ipa.view_partner_ipa_form" />
<field name="arch" type="xml">
<field name="ipa_code" position="replace" />
<field name="ipa_code" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>

Expand Down
8 changes: 8 additions & 0 deletions l10n_it_intrastat_statement/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@
from . import intrastat_statement_section
from . import intrastat_statement
from . import intrastat_statement_purchase_section
from . import intrastat_statement_purchase_section1
from . import intrastat_statement_purchase_section2
from . import intrastat_statement_purchase_section3
from . import intrastat_statement_purchase_section4
from . import intrastat_statement_sale_section
from . import intrastat_statement_sale_section1
from . import intrastat_statement_sale_section2
from . import intrastat_statement_sale_section3
from . import intrastat_statement_sale_section4
Loading

0 comments on commit dfbe150

Please sign in to comment.