Tuesday, January 13, 2026
1 change · 17.0
Enhancements to existing features
This update addresses a technical issue related to how Odoo handles record deletions, specifically concerning cascade deletes in the database. By proactively checking for related records, the system avoids errors and improves performance when dealing with removed messages, notifications, or activities. This ensures a more stable and reliable user experience.
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#101185