Do not set country subentity code in Peppol UBL

UBL-CR-225: A UBL invoice should not include the AccountingCustomerParty Party
PostalAddress CountrySubentityCode
This commit is contained in:
Cédric Krier
2025-12-22 12:33:05 +01:00
parent 259b19006e
commit 4df308a430
+1 -1
View File
@@ -50,7 +50,7 @@ this repository contains the full copyright notices and license terms. -->
<cbc:CityName py:if="address.city">${address.city}</cbc:CityName>
<cbc:PostalZone py:if="address.postal_code">${address.postal_code}</cbc:PostalZone>
<cbc:CountrySubentity py:if="address.subdivision">${address.subdivision.name}</cbc:CountrySubentity>
<cbc:CountrySubentityCode py:if="address.subdivision">${address.subdivision.code}</cbc:CountrySubentityCode>
<cbc:CountrySubentityCode py:if="address.subdivision and not (specification or '').startswith('peppol')">${address.subdivision.code}</cbc:CountrySubentityCode>
<cac:AddressLine py:if="address.street_unstructured">
<cbc:Line py:for="line in address.street_unstructured.splitlines()">
${line}