-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
161 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<!-- Decimal Precision --> | ||
<record forcecreate="True" id="decimal_payroll" model="decimal.precision"> | ||
<field name="name">Payroll</field> | ||
<field name="digits">2</field> | ||
</record> | ||
<record forcecreate="True" id="decimal_payroll_rate" model="decimal.precision"> | ||
<field name="name">Payroll Rate</field> | ||
<field name="digits">4</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
<!-- Decimal Precision --> | ||
<record forcecreate="True" id="decimal_payroll" model="decimal.precision"> | ||
<field name="name">Payroll</field> | ||
<field name="digits">2</field> | ||
</record> | ||
<record forcecreate="True" id="decimal_payroll_rate" model="decimal.precision"> | ||
<field name="name">Payroll Rate</field> | ||
<field name="digits">4</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="seq_salary_slip" model="ir.sequence"> | ||
<field name="name">Salary Slip</field> | ||
<field name="code">salary.slip</field> | ||
<field name="prefix">SLIP/</field> | ||
<field name="padding">3</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
<record id="seq_salary_slip" model="ir.sequence"> | ||
<field name="name">Salary Slip</field> | ||
<field name="code">salary.slip</field> | ||
<field name="prefix">SLIP/</field> | ||
<field name="padding">3</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,85 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record model="ir.module.category" id="module_category_payroll"> | ||
<field name="name">Payroll</field> | ||
<field name="description">Manage employee payroll</field> | ||
<field name="sequence">16</field> | ||
</record> | ||
<record id="group_payroll_user" model="res.groups"> | ||
<field name="name">Officer</field> | ||
<field name="category_id" ref="module_category_payroll" /> | ||
<field | ||
name="implied_ids" | ||
eval="[(4, ref('hr.group_hr_user')), (4, ref('hr_contract.group_hr_contract_manager'))]" | ||
/> | ||
</record> | ||
<record id="group_payroll_manager" model="res.groups"> | ||
<field name="name">Manager</field> | ||
<field name="category_id" ref="module_category_payroll" /> | ||
<field name="implied_ids" eval="[(4, ref('payroll.group_payroll_user'))]" /> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
<record id="base.default_user" model="res.users"> | ||
<field name="groups_id" eval="[(4,ref('payroll.group_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('payroll.group_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('payroll.group_payroll_manager'))]" /> | ||
</record> | ||
<!-- Company-restricted Records --> | ||
<record model="ir.rule" id="hr_payslip_rule_company"> | ||
<field name="name">Payslip: multi-company</field> | ||
<field name="model_id" ref="model_hr_payslip" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_payroll_structure_rule_company"> | ||
<field name="name">Payroll Structure: multi-company</field> | ||
<field name="model_id" ref="model_hr_payroll_structure" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_salary_rule_company"> | ||
<field name="name">Salary Rule: multi-company</field> | ||
<field name="model_id" ref="model_hr_salary_rule" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_salary_category_rule_company"> | ||
<field name="name">Salary Rule Category: multi-company</field> | ||
<field name="model_id" ref="model_hr_salary_rule_category" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_contribution_register_rule_company"> | ||
<field name="name">Contribution Register: multi-company</field> | ||
<field name="model_id" ref="model_hr_contribution_register" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
<record model="ir.module.category" id="module_category_payroll"> | ||
<field name="name">Payroll</field> | ||
<field name="description">Manage employee payroll</field> | ||
<field name="sequence">16</field> | ||
</record> | ||
<record id="group_payroll_user" model="res.groups"> | ||
<field name="name">Officer</field> | ||
<field name="category_id" ref="module_category_payroll" /> | ||
<field | ||
name="implied_ids" | ||
eval="[(4, ref('hr.group_hr_user')), (4, ref('hr_contract.group_hr_contract_manager'))]" | ||
/> | ||
</record> | ||
<record id="group_payroll_manager" model="res.groups"> | ||
<field name="name">Manager</field> | ||
<field name="category_id" ref="module_category_payroll" /> | ||
<field name="implied_ids" eval="[(4, ref('payroll.group_payroll_user'))]" /> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
<record id="base.default_user" model="res.users"> | ||
<field name="groups_id" eval="[(4,ref('payroll.group_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('payroll.group_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('payroll.group_payroll_manager'))]" /> | ||
</record> | ||
<!-- Company-restricted Records --> | ||
<record model="ir.rule" id="hr_payslip_rule_company"> | ||
<field name="name">Payslip: multi-company</field> | ||
<field name="model_id" ref="model_hr_payslip" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_payroll_structure_rule_company"> | ||
<field name="name">Payroll Structure: multi-company</field> | ||
<field name="model_id" ref="model_hr_payroll_structure" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_salary_rule_company"> | ||
<field name="name">Salary Rule: multi-company</field> | ||
<field name="model_id" ref="model_hr_salary_rule" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_salary_category_rule_company"> | ||
<field name="name">Salary Rule Category: multi-company</field> | ||
<field name="model_id" ref="model_hr_salary_rule_category" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
<record model="ir.rule" id="hr_contribution_register_rule_company"> | ||
<field name="name">Contribution Register: multi-company</field> | ||
<field name="model_id" ref="model_hr_contribution_register" /> | ||
<field name="global" eval="True" /> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.