Hi everyone, I have a custom model "A" that has a Many2many relationship to the hr.applicant model.
I have two groups of users in my application: admin and non-admin. I want both groups to have read permission of model "A", but only the admin group should have read permissions on hr.applicant.
I thought I could achieve this by adding groups="my_admin_group" to the field in model A's views, but unfortunately this is not working.
It's important to note that the approach above works IF the field is Many2one, rather than Many2many, which results in the value of the field being hidden from the non-admin group. But if the fields is Many2many (which is required in my case) it throws a permission error.
I have also tried to make the field conditionally invisible, but to no avail.
Any ideas of why this is happening, and how to work around it? Thank you.