summaryrefslogtreecommitdiff
path: root/addons/test_mass_mailing
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_mass_mailing
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_mass_mailing')
-rw-r--r--addons/test_mass_mailing/models/mass_mail_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mass_mailing/models/mass_mail_test.py b/addons/test_mass_mailing/models/mass_mail_test.py
index 1abe766c412..3da40c424ce 100644
--- a/addons/test_mass_mailing/models/mass_mail_test.py
+++ b/addons/test_mass_mailing/models/mass_mail_test.py
@@ -20,7 +20,7 @@ class MassMailTestBlacklist(models.Model):
""" Model using blacklist mechanism for mass mailing. """
_description = 'Mass Mailing Model w Blacklist'
_name = 'mass.mail.test.bl'
- _inherit = ['mail.thread', 'mail.blacklist.mixin']
+ _inherit = ['mail.thread.blacklist']
_primary_email = 'email_from' # blacklist field to check