## 记录权限
----
~~~
<record id="group_staff_leave_own_rule" model="ir.rule">
<field name='name'>员工可以查看、创建、修改、删除自己的请假记录</field>
<field name='model_id' ref="staff.model_staff_leave"/>
<field name='domain_force'>[('user_id','=',user.id)]</field>
<field name='groups' eval="[(4,ref('staff.hr_groups'))]"/>
<field name='perm_read' eval='True'/>
<field name='perm_write' eval='True'/>
<field name='perm_create' eval='True'/>
<field name='perm_unlink' eval='True'/>
</record>
~~~