Skip to content

Commit

Permalink
Merge PR #1517 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by yajo
  • Loading branch information
OCA-git-bot committed Dec 11, 2024
2 parents 89ce88c + 865dfc0 commit cc366ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mail_show_follower/models/mail_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def _send(self, auto_commit=False, raise_exception=False, smtp_session=None):
# recipients from any Notification Type (i.e. email, inbox, etc.)
recipients = mail.notification_ids.res_partner_id
record = self.env[mail.model].browse(mail.res_id)
company = getattr(record, "company_id", self.env.company)
company = getattr(record, "company_id", False)
if not company:
company = self.env.company
show_internal_users = company and company.show_internal_users_cc
show_in_cc_recipients = recipients._filter_shown_in_cc(show_internal_users)
if len(show_in_cc_recipients) <= 1:
Expand Down

0 comments on commit cc366ee

Please sign in to comment.