diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-09-20 14:04:44 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-09-20 14:05:41 +0000 |
| commit | 39f6cedcf39850d28d60342410d644ccf8b657aa (patch) | |
| tree | 1345b80f7d7cc9a8876b83064946ccd39b76c9fc /addons/mass_mailing/models/mailing.py | |
| parent | 1c614e34dc4d8fef95970aa781f56f4f0c532f1e (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/mailing.py')
| -rw-r--r-- | addons/mass_mailing/models/mailing.py | 2 |
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): |
