fix: update recipient domain to target share users instead of portal group members
This commit is contained in:
parent
851673d81b
commit
a37e49e3ed
@ -14,7 +14,7 @@ class PushNotificationWizard(models.TransientModel):
|
|||||||
partner_ids = fields.Many2many(
|
partner_ids = fields.Many2many(
|
||||||
'res.partner',
|
'res.partner',
|
||||||
string='Recipients',
|
string='Recipients',
|
||||||
domain=lambda self: [('user_ids.groups_id', 'in', [self.env.ref('base.group_portal').id]), ('user_ids.active', '=', True)]
|
domain=[('user_ids.share', '=', True), ('user_ids.active', '=', True)],
|
||||||
)
|
)
|
||||||
|
|
||||||
def action_send_push(self):
|
def action_send_push(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user