Friday, June 12, 2026
2 changes · 17.0
Resolved issues and error corrections
This update addresses a technical issue where a potential error occurred when comparing history data, specifically when the data was empty. The fix ensures the system gracefully handles this situation, preventing a crash and maintaining stability. This resolves a reported bug impacting the functionality of the web editor.
Original PR description
If, for whatever reason, the history we try to compare is an empty string, we might get a value error thrown. We guard the code to avoid the error. see :https://github.com/odoo/odoo/issues/269149 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update resolves an issue preventing users from expanding lines in the Partner Ledger report when using the MXN currency for invoices in Mexico. The root cause was a lack of duplicate checking when adding lines to the report, leading to an error. Resetting the invoice to draft and re-confirming fixes the problem.
Original PR description
## Short functional explanation of the error When setting up the company currency to MXN and creating a first invoice with a customer located in Mexico, in the Partner Ledger report, it is not…
## Short functional explanation of the error When setting up the company currency to MXN and creating a first invoice with a customer located in Mexico, in the Partner Ledger report, it is not possible to expand the lines as it triggers an error. ## Reproduction Steps 1. Create a db without demo data. 2. Download the modules l10n_mx and l10_mx_edi_extended. 3. Set the company currency to MXN. 4. Go to settings and check the box "Analytic Accounting". 5. Create a customer located in Mexico. 6. Create a product with a random price. 7. Activate debug mode. Go to reporting > Partner Ledger, click the small cog menu on the right, go to the options tab, and check Analytic Filter and Analytic Group By boxes. 8. In the accounting module, click on configuration > analytic plan, and create a new analytic plan. Then, click on the smart button "Analytic Accounts" on the top right of the screen and create a new analytic account. 9. Create a customer invoice in the accounting module. Set the customer as the one you just created, set a payment term and select the product you created for an invoice line. In Analytic Distribution, select the analytic account you created. Then, click on Journal Items. You should see 4 lines. For each line, set the analytic distribution to the analytic account you created. 9. Click on reporting > Partner Ledger. Click on the button Analytic Group By and select the analytic account you created. Then, try to expand the line. Note: if you reset your invoice to draft then confirm it again, the error won't appear anymore. ### Expected behavior All the details of the lines should appear ### Unexpected behavior An Odoo error appears: duplicate key in t-foreach ## Origin of the issue When adding lines to the report, a check to see whether the lines already appear in the report isn't made. __ opw-4967479