Daily updates from Odoo
Tuesday, November 11, 2025
1 change · master
Resolved issues and error corrections
Salary offer simulations now group a database safeguard step across the whole recalculation instead of repeating it for every offer. This reduces unnecessary database overhead and should improve performance when many salary offers need to be recalculated.
Original PR description
Savepoints are used in multiple computes related to salary simulation for an offer, because it creates and updates existing records, but those should not be committed to the database. Those are currently made for each offer that needs to be recomputed. Frequent savepoint, without commit/rollback of the whole transaction, are a performance issue at the database level. To partially alleviate this issue, this commit creates 1 savepoint for the whole compute, instead of per record to compute. Forward-Port-Of: odoo/enterprise#99080