62 lines
2.9 KiB
XML
62 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<data noupdate="1">
|
|
|
|
<record id="group_hr_payroll_user" model="res.groups">
|
|
<field name="name">Officer</field>
|
|
<field name="category_id" ref="base.module_category_hr_payroll"/>
|
|
<field name="implied_ids" eval="[(4, ref('hr.group_hr_user'))]"/>
|
|
</record>
|
|
|
|
<record id="group_hr_payroll_manager" model="res.groups">
|
|
<field name="name">Manager</field>
|
|
<field name="category_id" ref="base.module_category_hr_payroll"/>
|
|
<field name="implied_ids" eval="[(4, ref('hr_payroll.group_hr_payroll_user'))]"/>
|
|
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
|
</record>
|
|
|
|
<record id="base.default_user" model="res.users">
|
|
<field name="groups_id" eval="[(4,ref('hr_payroll.group_hr_payroll_manager'))]"/>
|
|
</record>
|
|
|
|
<record id="hr_payroll_rule_officer" model="ir.rule">
|
|
<field name="name">Officer and subordinates Payslip</field>
|
|
<field name="model_id" ref="model_hr_payslip"/>
|
|
<field name="domain_force">['|','|', ('employee_id.user_id', '=', user.id), ('employee_id.department_id', '=', False), ('employee_id.department_id.manager_id.user_id', '=', user.id)]</field>
|
|
<field name="groups" eval="[(4, ref('hr_payroll.group_hr_payroll_user'))]"/>
|
|
</record>
|
|
|
|
<record id="hr_payslip_rule_manager" model="ir.rule">
|
|
<field name="name">All Payslip</field>
|
|
<field name="model_id" ref="model_hr_payslip"/>
|
|
<field name="domain_force">[(1,'=',1)]</field>
|
|
<field name="groups" eval="[(4, ref('hr_payroll.group_hr_payroll_manager'))]"/>
|
|
</record>
|
|
|
|
<record id="hr_payslip_rule" model="ir.rule">
|
|
<field name="name">Payslip Multicompany</field>
|
|
<field name="model_id" ref="model_hr_payslip"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
|
|
<record id="hr_payroll_structure_rule" model="ir.rule">
|
|
<field name="name">Payroll Structure Multicompany</field>
|
|
<field name="model_id" ref="model_hr_payroll_structure"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
|
|
<record id="hr_salary_rule_rule" model="ir.rule">
|
|
<field name="name">Hr Salary Rule Multicompany</field>
|
|
<field name="model_id" ref="model_hr_salary_rule"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
|
|
<record id="hr_contribution_register_rule" model="ir.rule">
|
|
<field name="name">Hr Contribution Register Multicompany</field>
|
|
<field name="model_id" ref="model_hr_contribution_register"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
|
|
</data>
|
|
</flectra>
|