How can I override the helpdesk user seciruty records to allow the access to teams and tickes if the user is a member of the team, i.e. user.id is in member.ids of the team?
I tried the following in two ways, I chages the existing records manually and I added following call to a custom module:
Helpdesk User
['|',
'|',
('privacy_visibility', '!=', 'invited_internal'),
('message_partner_ids', 'in', [user.partner_id.id]),
('member_ids', 'in', [user.id]),
]
Helpdesk Ticket User
['|',
'|',
'|',
('team_id.privacy_visibility', '!=', 'invited_internal'),
('team_id.message_partner_ids', 'in', [user.partner_id.id]),
('message_partner_ids', 'in', [user.partner_id.id]),
('team_id.member_ids', 'in', [user.id]),
]
In both cases the user access rights stay the same.
Regards
Ameen