You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
901 B
20 lines
901 B
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Adding a salary rule for loan-->
|
|
<data>
|
|
<!-- Adding the Loan rule for Regular pay structure. -->
|
|
<record id="hr_salary_rule_loan" model="hr.salary.rule">
|
|
<field name="code">LO</field>
|
|
<field name="name">Loan</field>
|
|
<field name="category_id" ref="hr_payroll.DED"/>
|
|
<field name="condition_select">python</field>
|
|
<field name="condition_python">result = 'LO' in inputs</field>
|
|
<field name="amount_select">code</field>
|
|
<field name="amount_python_compute">result = - inputs['LO'].amount
|
|
</field>
|
|
<field name="appears_on_payslip" eval="True"/>
|
|
<field name="sequence" eval="190"/>
|
|
<field name="struct_id" ref="ent_ohrms_loan.hr_payroll_structure_regular_pay"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|