Tuesday, April 22, 2025
5 changes · saas-18.2
Resolved issues and error corrections
This fix prevents the Invoice Analysis report from failing when calculating average prices for products with a total quantity of zero. Business users can continue using pivot reports without encountering an error in this edge case.
Original PR description
Steps to reproduce:
- Install accounting with demo data
- Go to Reporting, Invoice Analysis in pivot view
- Select Average Price
Issue:
The _read_group_select method is overridden to correctly calculate the average price of products (see https://github.com/odoo/odoo/commit/29d9ea0d40c5f89c5636e80c68977358af5f77b4). But if the sum of quantities is zero, then we divide by zero.This change adjusts internal performance tests so they no longer fail unpredictably when measuring iterator behavior. It improves the stability of test results, reducing false alarms for development teams without changing customer-facing functionality.
Original PR description
Avoid raising errors on performance of iterators. These have been optimized for smaller sets and thus may get a more skewed time progression resulting in a non-linear behaviour. Therefore, we disable that behaviour and try with more iterations to have better stability in results. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The UAE invoice printout now shows the invoice title correctly instead of repeating the word “Invoice.” This avoids confusion for customers and keeps printed tax documents professional and compliant-looking.
Original PR description
With AE Company setup: - Create an invoice - Actions > Print Issue: Title will be 'Tax Invoice Invoice <name>' This occurs because in l10n_ae we extend the template, prepending a string instead of replacing the title opw-4700381
New Zealand customer invoices no longer show extra, unnecessary information in the printed report. This keeps invoice documents clearer and more professional for customers while preserving the intended invoice title.
Original PR description
Currently, unnecessary information is displaying on the NZ invoice report. <b>Steps:-</b> 1) Install l10n_nz and shift the company to a NZ company 2) Print a customer invoice <b>Issue:-</b> unnecessary information is displaying on the invoice report This issue is occurring because of the changes from the below commit. Initially, the inherited template was replacing the `layout_document_title` and printing the `invoice_title` based on the move type condition. https://github.com/odoo/odoo/pull/189664/commits/1accf51091229811a0b0c1d2356a56e5f7fde44c <b>Solution:-</b> Remove the XPath of the `layout_document_title` as the inherited template is directly replacing the original invoice title opw-4706957
This fix removes an unnecessary test step that could make automated point-of-sale settlement checks fail intermittently in some localization scenarios. It helps keep validation runs stable without changing business functionality or the user experience.
Original PR description
The same test is used in multiple modules. Sometimes in the mx localization it was possible that the closing of the session would take a bit longer and the modal wasn't fully closed (though invisible). The modal step in the tour was added when it was planned to remove the 'in_modal' parameter in tour steps and is not really needed for the original purpose of the test. runbot-error: 163628