From 1b8b1633cc04d11343ee69f4b687c8fd35ab460a Mon Sep 17 00:00:00 2001 From: jbw-odoo Date: Wed, 14 Sep 2022 07:44:08 +0000 Subject: [PATCH] [FIX] l10n_it_edi : invoice template node order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The RappresentanteFiscale and CessionarioCommittente nodes must be in this order in the invoice xml. The RappresentanteFiscale node is only added if the company has a tax representative configured. In that case, before this fix, submitting an invoice to the SDI (Italian tax agency) would not go through and generate an error : The invoice has been refused by the Exchange System File non conforme al formato : Invalid content was found starting with element 'RappresentanteFiscale'. One of '{TerzoIntermediarioOSoggettoEmittente, SoggettoEmittente}' is expected. How to reproduce : - Install l10n_it_edi_sdicoop - Configure a tax representative on the company - Go to accounting settings > Electronic Document Invoicing and choose the test mode + check the “Allow odoo…” checkbox. - Create a new invoice and confirm - Click on “Send now” - Click again on “Send now” until there is an update and the error is displayed. closes odoo/odoo#100264 Task: opw-2952098 X-original-commit: 71da80deb044852a2af6b111d695f94aad7803ac Signed-off-by: Josse Colpaert Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) --- .../l10n_it_edi/data/invoice_it_template.xml | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/addons/l10n_it_edi/data/invoice_it_template.xml b/addons/l10n_it_edi/data/invoice_it_template.xml index 5a7f2ec8cd2..2d25ea19772 100644 --- a/addons/l10n_it_edi/data/invoice_it_template.xml +++ b/addons/l10n_it_edi/data/invoice_it_template.xml @@ -79,6 +79,24 @@ + + + + + + + + + + + + + + + + + + @@ -109,24 +127,6 @@ - - - - - - - - - - - - - - - - - -