From 39f6cedcf39850d28d60342410d644ccf8b657aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 20 Sep 2019 14:04:44 +0000 Subject: [PATCH] [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 --- addons/mass_mailing/models/mailing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):