[FIX] mass_mailing: make subject translatable

In f50fbc6d16 the `subject` field was
created and made independent from the `name`, but it must be
translatable, just like the mail body.
This commit is contained in:
Olivier Dony
2019-05-21 17:31:06 +02:00
parent 472c95e4af
commit ceb0f7cba2
+1 -1
View File
@@ -457,7 +457,7 @@ class MassMailing(models.Model):
return res
active = fields.Boolean(default=True)
subject = fields.Char('Subject', help='Subject of emails to send', required=True)
subject = fields.Char('Subject', help='Subject of emails to send', required=True, translate=True)
email_from = fields.Char(string='From', required=True,
default=lambda self: self.env['mail.message']._get_default_from())
sent_date = fields.Datetime(string='Sent Date', oldname='date', copy=False)