Thursday, January 15, 2026
1 change · saas-18.2
Resolved issues and error corrections
This update addresses a technical issue related to how Odoo handles deleted records, specifically those linked to emails and activities. The change ensures that Odoo doesn't unnecessarily query related records after a cascade delete, improving performance and stability. This is a critical fix to prevent potential slowdowns.
Original PR description
In order to be defensive we have to check records linked to messages, notifications or activities exist before checking related information like display_name, or even to skip them in various flows. This happens notably due to DB-level cascade deletion that does not remove side records linked through (model, res_id) pairs. It implies some additional exist queries. Task-5138556 Forward-Port-Of: odoo/enterprise#104095 Forward-Port-Of: odoo/enterprise#101185