[FIX] mass_mailing: subject and preview should not be user translatable

Having those fields as translatable lead people to think those will be
translated into recipient's language. This is incorrect as translations
in Odoo are based on current user, not about any recipient who would
see the field value.

In this commit we therefore remove translation capabilities for
subject and preview. Indeed mailings currently offer no multi languages
support. Instead people should create separate mailings targetting
some specific recipients, based on lang or country for example.

Task ID-2535807

closes odoo/odoo#71093

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Delavallée
2021-05-20 10:47:03 +00:00
parent d934b81aaa
commit 0ba617ca87
+2 -2
View File
@@ -77,9 +77,9 @@ class MassMailing(models.Model):
return False
active = fields.Boolean(default=True, tracking=True)
subject = fields.Char('Subject', help='Subject of your Mailing', required=True, translate=True)
subject = fields.Char('Subject', help='Subject of your Mailing', required=True, translate=False)
preview = fields.Char(
'Preview', translate=True,
'Preview', translate=False,
help='Catchy preview sentence that encourages recipients to open this email.\n'
'In most inboxes, this is displayed next to the subject.\n'
'Keep it empty if you prefer the first characters of your email content to appear instead.')