-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_edi: use customer country for Nazione field
Steps to reproduce: - Install Accounting, l10n_it_edi and Contacts - Switch to an Italian company (e.g. IT Company) - Go to Contacts - Create an EU contact with "/" or "NA" as VAT (e.g. a Germnan contact with a full address) - Create an invoice: * Customer: [the created contact] * Product: [any] - Confirm the invoice - Process the electronic invoice - Check the generated electronic invoice Issue: 1) The country of customer is first computed from his VAT number and a fallback is made on his country. It should be the opposite. 2) In the XML, the "IdFiscaleIVA" section is set for customer with "/" (or "NA") as "IdPaese", but it should not because customer doesn't have a VAT number. If the XML is sent for validation, it is rejected because of that. Solution: 1) Backport of odoo#164950 2) Add a condition on "IdFiscaleIVA" node as it is done from saas-16.4 opw-3889051 closes odoo#165253 Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters