Hello,
I would like to know how to hide a view type like Kanban from a particular group. Is there a way to do this? I tried a couple ways that I thought would work, but for some reason it is still showing the Kanban view for the unwanted group.
Here is one method that I tried:
<record model="ir.ui.view" id="project.view_project_kanban">
<field name="groups_id" eval="[(6,0,[ref('group1'),ref('group2'),ref('group3')])]" />
</record>
I thought by adding groups the the view's group_ids field would only allow users in those groups to see the Kanban view, but it still is showing the view to the unwanted group.
Another method that I tried was to inherit the Kanban view and add a groups attribute to the <kanban> tag like this:
<record id="project_kanban_view_inherit" model="ir.ui.view">
<field name="name">Project Kanban Inherited</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project_kanban" />
<field name="arch" type="xml">
<xpath expr="/kanban" position="attributes">
<attribute name="groups">project.group1,project.group2,project.group3</attribute>
</xpath>
</field>
</record>
I thought this would work like the first example that I tried, but it still is showing the Kanban view for the unwanted group.
Does anyone know how I can hide a view from an unwanted group? Thank you