staff/security/groups.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id='hr_groups' model='res.groups'>
<field name='name'>员工</field>
<field name='category_id' ref="core.good_staff"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id='hr_senior_groups' model="res.groups">
<field name='name'>人事经理</field>
<field name="category_id" ref="core.good_staff"/>
<field name="users" eval="[(4,ref('base.user_root'))]"/>
<field name="implied_ids" eval="[(4, ref('staff.hr_groups'))]"/>
</record>
</data>
</openerp>