[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
This commit is contained in:
Thibault Delavallée
2019-09-20 14:05:41 +00:00
parent 1c614e34dc
commit 39f6cedcf3
+1 -1
View File
@@ -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):