From c59d6e109021c72d32884793d48ec60fecb95168 Mon Sep 17 00:00:00 2001
From: "Paolo Gatti (pgi)" <pgi@odoo.com>
Date: Fri, 28 Jul 2023 15:45:23 +0200
Subject: [PATCH] [IMP] l10n_it: Unnecessary precaution about Fiscal Positions
 note

The condition for which the Fiscal Position's Note is shown only in Customer Invoices is removed because unnecessary.
A check has been added on the company's country to be 'IT'.

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

closes odoo/odoo#135955

X-original-commit: c32720dbd4df60fd9e8e10d3893501e006130d8d
Signed-off-by: John Laterre (jol) <jol@odoo.com>
---
 addons/l10n_it/data/report_invoice.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/l10n_it/data/report_invoice.xml b/addons/l10n_it/data/report_invoice.xml
index 8edca53dc16d..48ce175bd27e 100644
--- a/addons/l10n_it/data/report_invoice.xml
+++ b/addons/l10n_it/data/report_invoice.xml
@@ -3,7 +3,7 @@
     <template id="report_invoice_document" inherit_id="account.report_invoice_document">
         <xpath expr="//p[@name='note']" position="replace">
             <p name="note">
-                <t t-if="o.move_type == 'out_invoice' and o.fiscal_position_id.note">
+                <t t-if="o.company_id.country_id.code == 'IT' and o.fiscal_position_id.note">
                     <span t-field="o.fiscal_position_id.note"/>
                 </t>
                 <t t-else="">
-- 
GitLab