0
1 Answer
0
Best Answer
Hi,
Try like below.
<record id="hr_personal_rule" model="ir.rule">
<field name="name">Employee</field>
<field ref="hr.model_hr_employee" name="model_id"/>
<field name="domain_force">[('user_id','=',user.id)]</field>
<field name="groups" eval="[(4, ref('group_name'))]"/>
</record>
if you want to show some fields in employee records to only a particular group of users, you can use the group attribute along with that field.
<field name="location_id" groups="group_name"/>
Regards