Monday, January 26, 2026
1 change · 17.0
Resolved issues and error corrections
This update fixes an issue where invoices imported via UBL XML were incorrectly identified as individual customers instead of companies. This change ensures that imported invoices are properly associated with the correct business partner, improving data accuracy in invoicing and reporting. The fix backports a previous solution.
Original PR description
Importing an xml with an unknown partner sets the partner as individual when it should be set as a company Steps to reproduce: 1. Install Invoicing 2. Open Invoicing and click on "Upload" 3. Select any invoice xml (e.g. https://docs.oasis-open.org/ubl/os-UBL-2.2/xml/UBL-Invoice-2.1-Example.xml) 4. On the draft invoice created, click on the internal link next to the customer 5. The new partner created is an individual, it should be a company Solution: Set new imported partners as company backport of https://github.com/odoo/odoo/commit/aa9fd54ab321eb591666244fbd14c1127151de70 opw-5490363