You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _send_prepare_values(self, partner=None):
res = super()._send_prepare_values(partner=partner)
is_from_composer = self.env.context.get("is_from_composer", False)
if not is_from_composer:
return res
partners_cc_bcc = self.recipient_cc_ids + self.recipient_bcc_ids
partner_to_ids = [r.id for r in self.recipient_ids if r not in partners_cc_bcc]
partner_to = self.env["res.partner"].browse(partner_to_ids)
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"])
return res
https://github.com/OCA/social/blob/16.0/mail_composer_cc_bcc/models/mail_mail.py#L298
the super function is called before:
so the "email_to_normalized" will not contain the bcc and cc addresses.
but here they will be removed since they are not in the validated_to
The text was updated successfully, but these errors were encountered: