[FIX] account_edi_ubl_cii: use the VAT for the PartyTaxScheme/CompanyID
Node `/cac:Party/cac:PartyTaxScheme/cbc:CompanyID` should be filled with the VAT rather than the Peppol Endpoint. Otherwise, a Peppol Bis 3 validator will raise: "[BR-CO-09]-The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’." opw-3589263 closes odoo/odoo#142487 X-original-commit: f06535e99f4735407c1b9808bb6acd9596726872 Signed-off-by: Florian Gilbert (flg) <flg@odoo.com> Signed-off-by: Julien Van Roy (juvr) <juvr@odoo.com>
This commit is contained in:
@@ -61,9 +61,6 @@ class AccountEdiXmlUBLBIS3(models.AbstractModel):
|
||||
if partner.country_id.code == "AU" and partner.vat and not partner.vat.upper().startswith("AU"):
|
||||
vals['company_id'] = "AU" + partner.vat
|
||||
|
||||
if partner.country_id.code == "LU" and 'l10n_lu_peppol_identifier' in partner._fields and partner.l10n_lu_peppol_identifier:
|
||||
vals['company_id'] = partner.l10n_lu_peppol_identifier
|
||||
|
||||
# sources:
|
||||
# https://anskaffelser.dev/postaward/g3/spec/current/billing-3.0/norway/#_applying_foretaksregisteret
|
||||
# https://docs.peppol.eu/poacc/billing/3.0/bis/#national_rules (NO-R-002 (warning))
|
||||
|
||||
Reference in New Issue
Block a user