[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user