Merge PR #1018 into 15.0

Signed-off-by yajo
This commit is contained in:
OCA-git-bot 2022-12-02 10:40:56 +00:00
commit 7642acb42a
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@
"application": False,
"installable": True,
"depends": ["base", "mail"],
"maintainers": ["yajo"],
"data": [
"views/res_config_settings.xml",
"views/res_users.xml",

View File

@ -114,7 +114,10 @@ class MailMail(models.Model):
if cc_internal:
partners = partners_obj.filtered(
lambda x: x.id not in user_partner_ids
and (not x.user_ids or x.user_ids.show_in_cc)
and (
not x.user_ids
or any(x.mapped("user_ids.show_in_cc"))
)
)
else:
partners = partners_obj.filtered(