Thursday, August 22, 2024
1 change · 17.0
Code cleanup and technical improvements
This update reorganizes how company Peppol identifiers are checked and cleaned before use. It reduces the risk of incorrect identifier handling and makes future support for additional identifier formats easier to add and maintain.
Original PR description
Refactoring method _check_peppol_endpoint_number and _sanitize_peppol_endpoint. Added sanitization for current supported EAS. This refactoring will make it easier to add support for more EAS. Refactoring to solve issues with wrong handling of Peppol ID and make it easier to add better support for more EAS without large modifications. This will also make the code easier to support in the future. Original Discussion: https://github.com/odoo/odoo/pull/176109#issuecomment-2286587053