From 827bdbd441b82bed7232bbfc0fee58310f2b379b Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Mon, 7 Nov 2022 15:59:07 +0100 Subject: [PATCH] [FIX] set l10n_it_fatturapa_out XML templates as not translatable --- .../data/invoice_it_template.xml | 644 +++++++++--------- .../data/invoice_it_template.xml | 30 +- .../views/account_invoice_it_dati_bollo.xml | 12 +- .../account_invoice_it_dati_ritenuta.xml | 48 +- 4 files changed, 387 insertions(+), 347 deletions(-) diff --git a/l10n_it_fatturapa_out/data/invoice_it_template.xml b/l10n_it_fatturapa_out/data/invoice_it_template.xml index 7a5aa422dfe0..23c94be6d4a1 100644 --- a/l10n_it_fatturapa_out/data/invoice_it_template.xml +++ b/l10n_it_fatturapa_out/data/invoice_it_template.xml @@ -15,6 +15,7 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati) diff --git a/l10n_it_fatturapa_out_di/data/invoice_it_template.xml b/l10n_it_fatturapa_out_di/data/invoice_it_template.xml index 4f5a527f84d5..666dabf2008c 100644 --- a/l10n_it_fatturapa_out_di/data/invoice_it_template.xml +++ b/l10n_it_fatturapa_out_di/data/invoice_it_template.xml @@ -8,10 +8,11 @@ + + t-set="to_add" + t-value="record.declaration_of_intent_ids - record.declaration_of_intent_ids.browse(force_declaration_of_intent_ids)" + /> @@ -23,13 +24,15 @@ INTENTO + t-esc="encode_for_export(dec.telematic_protocol, 60)" + /> + + 0.00 N1 @@ -37,6 +40,7 @@ 0.00 Esclusa ex. Art. 15 + diff --git a/l10n_it_fatturapa_out_stamp/views/account_invoice_it_dati_bollo.xml b/l10n_it_fatturapa_out_stamp/views/account_invoice_it_dati_bollo.xml index 48025a8988b6..21b03dae89a2 100644 --- a/l10n_it_fatturapa_out_stamp/views/account_invoice_it_dati_bollo.xml +++ b/l10n_it_fatturapa_out_stamp/views/account_invoice_it_dati_bollo.xml @@ -6,16 +6,18 @@ inherit_id="l10n_it_fatturapa_out.account_invoice_it_dati_bollo" > + + t-if="record.tax_stamp and record.company_id.tax_stamp_product_id" + > SI + t-set="stamp_price" + t-value="format_numbers_two(record.company_id.tax_stamp_product_id.list_price)" + /> + diff --git a/l10n_it_fatturapa_out_wt/views/account_invoice_it_dati_ritenuta.xml b/l10n_it_fatturapa_out_wt/views/account_invoice_it_dati_ritenuta.xml index 7e53db25bd4a..ef47f1443868 100644 --- a/l10n_it_fatturapa_out_wt/views/account_invoice_it_dati_ritenuta.xml +++ b/l10n_it_fatturapa_out_wt/views/account_invoice_it_dati_ritenuta.xml @@ -7,25 +7,27 @@ > + + t-set="ritenuta_lines" + t-value="record.withholding_tax_line_ids.sorted(key=lambda l: l.withholding_tax_id.code)" + /> + t-set="tipo_ritenuta" + t-value="get_withholding_type(wt_line.withholding_tax_id.wt_types, record.company_id.partner_id)" + /> + t-esc="format_numbers_two(wt_line.withholding_tax_id.tax)" + /> + t-esc="wt_line.withholding_tax_id.payment_reason_id.code" + /> + @@ -35,27 +37,29 @@ > + + t-set="TC_CODE" + t-value="{'inps': 'TC22', 'enasarco': 'TC07', 'enpam': 'TC09',}" + /> + t-set="ritenuta_lines" + t-value="record.withholding_tax_line_ids.sorted(key=lambda l: l.withholding_tax_id.code)" + /> + t-foreach="ritenuta_lines.filtered(lambda wtl: wtl.withholding_tax_id.use_daticassaprev)" + t-as="wt_line" + > 0.00 + t-esc="wt_line.withholding_tax_id.daticassprev_tax_id.kind_id.code" + /> + @@ -66,10 +70,12 @@ > + SI +