Skip to content

Commit 1844713

Browse files
committed
Merge PR #4524 into 16.0
Signed-off-by sergiocorato
2 parents 9193386 + 3c82264 commit 1844713

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

l10n_it_fatturapa_out/data/invoice_it_template.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,15 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
333333
<!-- <ProvinciaAlbo t-out=""/>-->
334334
<!-- <NumeroIscrizioneAlbo t-out=""/>-->
335335
<!-- <DataIscrizioneAlbo t-out=""/>-->
336-
<RegimeFiscale>RF01</RegimeFiscale>
337-
<!-- TODO: see https://github.com/OCA/l10n-italy/issues/2557-->
338-
<!-- t-out="partner_id.fatturapa_fiscal_position_id.code"-->
336+
<t t-if="company_id and company_id.fatturapa_fiscal_position_id">
337+
<RegimeFiscale
338+
t-out="company_id.fatturapa_fiscal_position_id.code"
339+
/>
340+
</t>
341+
<t t-if="not company_id">
342+
<RegimeFiscale>RF01</RegimeFiscale>
343+
</t>
344+
<!-- NOTE: see https://github.com/OCA/l10n-italy/issues/2557 -->
339345
</DatiAnagrafici>
340346
<Sede>
341347
<t
@@ -706,6 +712,7 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
706712
<t
707713
t-call="l10n_it_fatturapa_out.account_invoice_it_cedente_prestatore"
708714
>
715+
<t t-set="company_id" t-value="company_id" />
709716
<t t-set="partner_id" t-value="company_id.partner_id" />
710717
</t>
711718
<t

0 commit comments

Comments
 (0)