Merge PR #1592 into 16.0

Signed-off-by trisdoan
pull/1522/head
OCA-git-bot 2025-02-21 09:29:51 +00:00
commit f4f2390937
1 changed files with 7 additions and 0 deletions

View File

@ -296,4 +296,11 @@ class MailMail(models.Model):
res["email_to"] = format_emails(partner_to)
res["email_cc"] = format_emails(self.recipient_cc_ids)
res["email_bcc"] = format_emails(self.recipient_bcc_ids)
if res.get("email_to"):
res["email_to_normalized"] += tools.email_normalize_all(res["email_to"])
if res.get("email_cc"):
res["email_to_normalized"] += tools.email_normalize_all(res["email_cc"])
if res.get("email_bcc"):
res["email_to_normalized"] += tools.email_normalize_all(res["email_bcc"])
res["email_to_normalized"] = list(set(res["email_to_normalized"]))
return res