[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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user