Daily updates from Odoo
Friday, March 27, 2026
3 changes · master
Resolved issues and error corrections
This update corrects an issue in the payroll calculations by ensuring ormcache keys accurately include all necessary parameters. Specifically, the system now handles dynamic date calculations correctly, preventing caching problems and improving the stability of payroll processing. This change ensures more reliable and efficient payroll operations.
Original PR description
[FIX] hr_payroll: fix ormcache key for _get_parameter_from_code 1. ormcache key should contain all parameters, `raise_if_not_found` is not a valid exception 2. `data=None` will fallback to `fields.Date.today()` which is dynamic and shouldn't be ormcached. https://github.com/odoo/odoo/pull/255514
This update resolves an issue where payroll data was incorrectly relying on outdated XML references. By adding a specific parameter, the system now loads data more reliably, ensuring accurate payroll calculations. This improves the stability and accuracy of HR payroll processing.
Original PR description
For now some data depend on xml ref and the code run on loading before the actual recoreds are loaded so we need to add `, raise_if_not_found=False` Task: 6072212
A bug in report calculations was causing errors when editing values within reports. This update corrects a mismatch between how report data is sent and received, ensuring accurate calculations after manual changes. This improves report reliability and data accuracy for users.
Original PR description
…getting column_group_totals from json Backport of f91e98fe645768db4af590fa4cdfe2ddfe85f888 // Bug The following flow failed: 1) Create a report with 3 lines: - Line 1: using the "domain" engine -…
…getting column_group_totals from json
Backport of f91e98fe645768db4af590fa4cdfe2ddfe85f888
// Bug
The following flow failed:
1) Create a report with 3 lines:
- Line 1: using the "domain" engine
- Line 2: using the "external" engine, with subformula="editable"
- Line 3: an aggregation summing lines 1 and 2
2) Open the report, and edit the amount in line 2
===> Error message, stating Line 1 cannot be evaluated while evaluating Line 3's formula.
// Cause of the issue
When editing a manual value, to avoid recomputing the whole report uselessly, the client sends the column_groups_totals that were computed to render report back to the server. When modifying the external value, that data structure is used to get the results of all other expressions, and reevaluate the aggregations that depend on the modified external value. json is used to send the column_group_totals.
json conversion always forces the keys to be strings. In the past, this was no problem, since the column_group_totals' keys were column group keys, which were also strings server-side. However, https://github.com/odoo/enterprise/commit/ec3581cd759d8c4e03db9e08f6f95546e5724e1f now makes those key indices of a list, hence integers. So, when column_group_totals were sent from the client, they basically were ignored, since none of their keys matched any column group index, causing the bug.
Forward-Port-Of: odoo/enterprise#111841