From 0ba617ca870e5285274f75ef1b273654189f0eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 20 May 2021 10:47:03 +0000 Subject: [PATCH] [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) --- addons/mass_mailing/models/mailing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mass_mailing/models/mailing.py b/addons/mass_mailing/models/mailing.py index 7646a0b0e12..f25f7b138b0 100644 --- a/addons/mass_mailing/models/mailing.py +++ b/addons/mass_mailing/models/mailing.py @@ -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.')