[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
22 lines
404 B
Python
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
|