+1 vote

I am in Odoo 12 as an admin user and I want to restrict a user from access to a specific view of a model. For example, I'm going to restrict user named Sina to see a tree view of res.partner model. I went to Technical Settings > User Interface > Views and find the view named "res.partner.tree". Then in the "Access Rights" tab added a group which user Sina is a member of that.

But this restriction doesn't work and when I login by Sina I can see any view I want.

What is the problem?

closed with the note: Fixed
in App by (10.5k points)
closed by | 231 views

1 Answer

+1 vote
Best answer
<record id="original_module.view_id" model="ir.ui.view">
    <field name="groups_id" eval="[(3,ref('your_group_id'))]"/>
by (5k points)
selected by
205 questions
180 answers
220,718 users