From 773a631a77cff77758dbd58ba5730c53e7020e7b Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 23 Feb 2017 13:38:12 +0100 Subject: [PATCH] [FIX] mail: remove comma The email content was a tuple instead of a proper string. Introduced at 0028c421 Fixes tw:jaynvora/status/834435897554710528 --- addons/mail/models/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 1edbd7f6275..9589bab1278 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -898,7 +898,7 @@ class MailThread(models.AbstractModel):

Hello,

The following email sent to %s cannot be accepted because this is a private email address. Only allowed people can contact us at this address.

-
%s
""" % (message.get('to'), message_dict.get('body')), +
%s
""" % (message.get('to'), message_dict.get('body')) # Wrong model if model and model not in self.env: