Thursday, August 27, 2026
3 changes · 18.0
Enhancements to existing features
Lead assignment now checks whether records still exist in batches instead of repeating the same database check on every loop. This reduces unnecessary database work and helps CRM lead allocation run more reliably under heavier volumes.
Original PR description
Every call to `.exists` inside `_allocate_leads` runs a select query for every iteration of the `while population:` loop. We can reduce the query count by using the already built block to check occasionally. https://github.com/odoo/odoo/blob/d6c01a69b4314b869510be8e48ccaa004e1c918a/addons/crm/models/crm_team.py#L496-L500 This is the major contributing factor to why the tests `test_assign_perf_duplicates` `test_assign_perf_no_duplicates`, and `test_assign_perf_populated` are failing https://github.com/odoo/odoo/blob/d6c01a69b4314b869510be8e48ccaa004e1c918a/addons/crm/tests/test_performances.py#L180-L182 https://github.com/odoo/odoo/blob/d6c01a69b4314b869510be8e48ccaa004e1c918a/addons/crm/tests/test_performances.py#L97-L99 https://github.com/odoo/odoo/blob/d6c01a69b4314b869510be8e48ccaa004e1c918a/addons/crm/tests/test_performances.py#L51-L54 runbot-238398
Odoo now applies the same permission checks to related record changes passed through the context as it does to normal field updates. This prevents unauthorized changes from being silently ignored and makes access behavior more consistent and predictable.
Original PR description
Some commands may perform a change on related records by using Commands. When passed through the context, unallowed actions are ignored instead of rising access errors. This check aligns the behaviour with normal writes of fields. A test in `project` module shows this behaviour. Backport of odoo/odoo#258845 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Italian electronic invoices can now be imported without relying on a specific file name format. This reduces rejected or incomplete imports when files are renamed, making invoice processing smoother for users.
Original PR description
With this commit: - We remove the regex check on the imported file name. - The behavior before was checking the filename to fill data into the invoice. - This should not be constrained so that we can ignore the filename Task [link](https://www.odoo.com/odoo/project.task/6152773) task-6152773