Files
odoo_source/addons/mail/models/__init__.py
T
Adrian Torres 14f80bfae6 [FIX] mail: delete leftover followers
[FIX] mail: delete leftover followers

Previous to this commit, if during the unlink of a model which inherits
from mail.thread an exception is raised before mail.thread's unlink() is
called, followers for such model won't be properly deleted from the
database.

This commit changes this by overriding ir_model's unlink and deleting any
followers whose res_model is not installed.

Partial back-port of 3614193
Fixes #21462
OPW 786790
2017-12-26 07:27:25 +00:00

22 lines
404 B
Python

# -*- coding: utf-8 -*-
import mail_message_subtype
import mail_tracking_value
import mail_alias
import mail_followers
import mail_notification
import mail_message
import mail_mail
import mail_thread
import mail_channel
import mail_template
import mail_shortcode
import res_partner
import res_users
import res_config
import update
import ir_actions
import ir_autovacuum
import ir_model
import html2text