Daily updates from Odoo
Friday, April 10, 2026
4 changes
2 changes
Code cleanup and technical improvements
This update adjusts how attendance analysis reports calculate costs, specifically incorporating hourly rates associated with each employee. This ensures more accurate tracking of labor expenses within the attendance reports, improving the reliability of time and attendance data. The change was made to align with a new employee versioning model.
Original PR description
Update the attendance analysis report initial query according to the hourly_cost change. **PR com**: https://github.com/odoo/odoo/pull/258081 task-6098429
This update allows us to accurately track an employee's hourly cost over time by moving this data from the main employee record to a versioned record. Previously, changes to hourly cost would overwrite historical data, making it impossible to see how costs evolved. This change provides a more complete and reliable record of employee expenses.
Original PR description
This commit will migrate the hourly_cost field from the base employee model to the versioned record model. **Why:** Previously, the hourly_cost field was defined directly on the hr.employee model. Because this model represents the "main" record, any changes to the hourly cost would overwrite the value across all historical versions of that employee. This made it impossible to track how an employee's cost to the company evolved over time. By moving this field to the versioning model each historical snapshot of the employee can now maintain its own specific hourly cost. **What:** - Added the `hourly_cost` field to the employee versioning model. - Updated `hourly_cost` of an employee to use the version related field task-6098429
1 change
Code cleanup and technical improvements
This update adjusts how hourly costs are handled for employee attendance tracking. Moving the hourly cost to the employee versioning model ensures more accurate calculations in reports, particularly for employees with varying rates. This improves the reliability of attendance analysis and forecasting.
Original PR description
Update the attendance analysis report initial query according to the hourly_cost change PR com: https://github.com/odoo/odoo/pull/258077 task-6098429
1 change
Code cleanup and technical improvements
This update replaces a risky, older method of evaluating expressions with a safer, dedicated system. It simplifies calculations within Odoo reports, specifically in the account_report module, and reduces potential security vulnerabilities. This change improves the stability and maintainability of our reporting features.
Original PR description
Replace the legacy eval-based expr_eval with an AST evaluator for simple expressions, that now also supports variables and context
The new `expr_eval` has a small subset of python syntax: arithmetic, comparisons, boolean operators, literals, lists, tuples, dicts, sets, variables passed as context, subscripting, and min/max.
This works for simple formulas and simple domain expressions and avoids ever going through `eval` for these
(https://github.com/odoo/enterprise/pull/107659 already deprecates `const_eval` btw)
community: https://github.com/odoo/odoo/pull/255216