Wednesday, May 13, 2026
1 change · 19.0
Code cleanup and technical improvements
Peppol endpoint cleanup and validation is now handled in one shared place on partner records, reducing duplicated logic across invoicing and localization modules. This makes company and partner Peppol data checks more consistent and easier to maintain, with no expected workflow change for users.
Original PR description
[REF] account_{edi_ubl_cii,peppol}, *: unify sanitizer and checker
modules: account_peppol, account_edi_ubl_cii, l10n_dk_oioubl, l10n_dk_nemhandel
There are multiple places where the peppol endpoint is sanitized and/or checked. This commit unify the sanitizer/checker so that the res.partner model is responsible for doing it. The choice to keep it in res.partner was made because it's where the data is saved (e.g. peppol_endpoint on res.company is a related to the res.partner field)
This commit also removes the constraint on the field peppol_endpoint on res.company: as it is a related field and not readonly, the check will be triggered in res.partner.
task-5404836