How to hide security groups in the access rights page of the users form based on its name?
I have tried the following code in the res_users.py file, but it hasn't worked.
def get_application_groups(self, domain):
group = self.env['res.groups'].search([('name', '=', group_to_hide)], limit=1)
group_id = group.id if group else None
return super(Users, self).get_application_groups(domain + [('id','!=',group_id)])