tictac/itis_hr_extend/security/groups.xml

28 lines
1.2 KiB
XML
Raw Normal View History

2019-05-06 09:40:59 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="base.group_hr_payroll_manager" model="res.groups">
<field name="name">Payroll Manager</field>
<field name="comment">the user will have the additional right to approve payroll slips.</field>
<field name="category_id" ref="base.module_category_human_resources"/>
<field name="implied_ids" eval="[(4, ref('base.group_hr_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="hr_holidays_personal_rule" model="ir.rule">
<field name="name">Assigned Leaves</field>
<field ref="model_hr_holidays" name="model_id"/>
<field name="domain_force">['|',('employee_id.user_id','=',user.id),('employee_id.parent_id.user_id','=',user.id)]</field>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="resource.access_resource_calendar_leaves_user" model="ir.model.access">
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="True"/>
<field name="perm_unlink" eval="True"/>
</record>
</data>
</openerp>