summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-09-20 14:04:44 +0000
committerThibault Delavallée <tde@odoo.com>2019-09-20 14:05:41 +0000
commit39f6cedcf39850d28d60342410d644ccf8b657aa (patch)
tree1345b80f7d7cc9a8876b83064946ccd39b76c9fc /addons/mass_mailing/models
parent1c614e34dc4d8fef95970aa781f56f4f0c532f1e (diff)
[IMP] mass_mailing: use subject as rec name of mailings
As mailings are now using subject as naming field and name is now a technical field used for utm source, let us use the subject as rec_name of the mailing model. LINKS Task ID 2072130 PR: #36935
Diffstat (limited to 'addons/mass_mailing/models')
-rw-r--r--addons/mass_mailing/models/mailing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/models/mailing.py b/addons/mass_mailing/models/mailing.py
index 8b5d9d18a49..d84237d1e9e 100644
--- a/addons/mass_mailing/models/mailing.py
+++ b/addons/mass_mailing/models/mailing.py
@@ -45,7 +45,7 @@ class MassMailing(models.Model):
_period_number = 6
_order = 'sent_date DESC'
_inherits = {'utm.source': 'source_id'}
- _rec_name = "source_id"
+ _rec_name = "subject"
@api.model
def _get_default_mail_server_id(self):