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#165365 X-original-commit: a34019c Signed-off-by: Wala Gauthier (gawa) <[email protected]> Signed-off-by: Anh Thao Pham (pta) <[email protected]>
- Loading branch information