Thursday, June 4, 2026
1 change · 18.0
Enhancements to existing features
This update enhances how Odoo finds partners during UBL (UBL) imports, primarily for Peppol transactions. It now uses exact name matches and incorporates bank account details for more accurate identification, reducing errors. A key fix ensures correct partner creation when VAT information is present in the UBL file.
Original PR description
Before this commit: Partner was searched using contains on the name, which could match unrelated partners with similar names (e.g. `Global Tech` matching `Global Technologies Ltd`). With this update: - Partner retrieval now uses an exact name match to avoid incorrect matches caused by partial name search. - For UBL imports for Peppol, bank details are also used to help identify the partner by matching the bank account number. The retrieval logic has also been improved: 1. If VAT exists in the XML: - If a partner found with no VAT then enrich that partner by filing VAT from xml - If a partner found with a different VAT than the one in the XML, then a new partner will be created Also fix the test case where it finds `partner_1` through the `bank account number` and creates a new partner instead of returning the correct `partner_2`. task-5485563 Forward-Port-Of: odoo/odoo#250309