summaryrefslogtreecommitdiff
path: root/addons/test_mail/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-04-18 13:25:09 +0000
committerThibault Delavallée <tde@odoo.com>2019-05-13 15:18:40 +0000
commitdbd4aab6c3172688d98cef700265795527d63cb3 (patch)
tree7b4efc3a4cfe6e9c4030cf0d9e2d3f2536870aae /addons/test_mail/models
parent0f141607b8214887d0eff4c561a2b17399a43613 (diff)
[REF] mail: make blacklist a mixin built upon mail.thread and add message_bounce
* mail.blacklist.mixin now clearly make inheritance on mail.thread. Indeed we consider models using the blacklist mechanism as being used in mailing features, meaning they will anyway inherit form mail.thread. In standard Odoo it is the case for the 3 models using it (Lead/Opportunity, Contact and Mailing Contact); * define message_bounce directly in mail.blacklist.mixin. Bounce counter is indeed linked to the blacklist and mailing mechanism; * rename mail.blacklist.mixin to mail.thread.blacklist to ensure coherency with mail.thread and mail.thread.cc (another mixin build on mailL.thread); Inherit declarations in various addons are updated accordingly. Related to task ID 1911679 Linked to PR #29483
Diffstat (limited to 'addons/test_mail/models')
-rw-r--r--addons/test_mail/models/test_mail_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mail/models/test_mail_models.py b/addons/test_mail/models/test_mail_models.py
index bdf9f164da8..b9ff40ebc7a 100644
--- a/addons/test_mail/models/test_mail_models.py
+++ b/addons/test_mail/models/test_mail_models.py
@@ -20,7 +20,7 @@ class MailTestGateway(models.Model):
mailing features and base performances. """
_description = 'Simple Chatter Model for Mail Gateway'
_name = 'mail.test.gateway'
- _inherit = ['mail.blacklist.mixin', 'mail.thread']
+ _inherit = ['mail.thread.blacklist']
_primary_email = 'email_from'
name = fields.Char()