commit
7642acb42a
@ -13,6 +13,7 @@
|
|||||||
"application": False,
|
"application": False,
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"depends": ["base", "mail"],
|
"depends": ["base", "mail"],
|
||||||
|
"maintainers": ["yajo"],
|
||||||
"data": [
|
"data": [
|
||||||
"views/res_config_settings.xml",
|
"views/res_config_settings.xml",
|
||||||
"views/res_users.xml",
|
"views/res_users.xml",
|
||||||
|
@ -114,7 +114,10 @@ class MailMail(models.Model):
|
|||||||
if cc_internal:
|
if cc_internal:
|
||||||
partners = partners_obj.filtered(
|
partners = partners_obj.filtered(
|
||||||
lambda x: x.id not in user_partner_ids
|
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:
|
else:
|
||||||
partners = partners_obj.filtered(
|
partners = partners_obj.filtered(
|
||||||
|
Loading…
Reference in New Issue
Block a user