Steps: - Create an automation rule with a model X - Delete model X (need a way that keep the rule) Actual result: - Crash due to warning message Expected result: - Warning message is logged without issue opw-3722953 closes odoo/odoo#153078 Signed-off-by: Bruno Boi (boi) <boi@odoo.com>