[FIX] l10n_it_edi: law reference field should always be visible

Taxes on self-invoices for non-EU export actually have amount > 0,
l10n_it_has-exoneration = False but they must have the law reference
field filled out, so we're taking the "invisible" clause
out of the view.

Task: https://www.odoo.com/web#id=3010849&model=project.task
opw-3010849

closes odoo/odoo#105238

X-original-commit: cdb90133ae463f62ade82f67ac89293e09b69740
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
This commit is contained in:
Paolo Gatti
2022-11-08 12:42:55 +01:00
parent 470b132a82
commit 1451855d4b
2 changed files with 2 additions and 2 deletions
@@ -171,7 +171,7 @@
<Imposta t-out="format_monetary(abs(tax_line['tax_amount']), currency)"/>
</t>
<EsigibilitaIVA t-if="not has_exoneration or kind_exoneration == 'N6'" t-out="tax.l10n_it_vat_due_date"/>
<RiferimentoNormativo t-if="has_exoneration" t-out="format_alphanumeric(tax.l10n_it_law_reference[:100])"/>
<RiferimentoNormativo t-if="tax.l10n_it_law_reference" t-esc="format_alphanumeric(tax.l10n_it_law_reference[:100])"/>
</DatiRiepilogo>
</t>
</DatiBeniServizi>
+1 -1
View File
@@ -13,7 +13,7 @@
<field name="l10n_it_vat_due_date"/>
<field name="l10n_it_has_exoneration"/>
<field name="l10n_it_kind_exoneration" attrs="{'invisible': [('l10n_it_has_exoneration', '=', False)]}"/>
<field name="l10n_it_law_reference" attrs="{'invisible': [('l10n_it_has_exoneration', '=', False)]}"/>
<field name="l10n_it_law_reference"/>
</group>
</group>
</xpath>