Reputation: 691
I have created an page/tab using following code :
<xpath expr="/form/sheet/notebook/page[@string='Academic & Professional Details']" position="after">
<page string="Family Details" groups="base.group_user">
<group col="4" string="Family Details">
<field name="family_detail_ids" widget="one2many_list" colspan="4" nolabel="1">
<tree string="Family Details" editable="bottom">
<field name="relation" />
<field name="name" />
<field name="qualification" />
<field name="occupation" />
<field name="dob" on_change="calculate_age(dob)"/>
<field name="age" />
<field name="contact" />
</tree>
</field>
</group>
</page>
</xpath>
groups="base.group_user" has been set.
As per group definition, I think this tab should be visible only to logged-in user so that he can view his information. Why logged-in user is able to see this tab information of other users as well? Can anyone please explain or suggest a solution?
Upvotes: 0
Views: 657
Reputation: 11143
You given access right to the User which has Human Resources = Employee.( Under Setting => Users => Users => Access Rights)
If You leaves empty Human Resources than this group will work groups="base.group_user"
or hide page.
If you want to test a new group than you can check below thing:
<page string="Family Details" groups="base.group_sale_salesman_all_leads">
</page>
This page will see only if User has right for Sales => See all leads otherwise it will hide the page.
Hope this will help you.
Upvotes: 1