[FIX] l10n_be_hr_payroll: Remove wrong rule

This rule is not correct, and shouldn't be applied here.
This commit is contained in:
Yannick Tivisse
2019-01-04 12:37:01 +01:00
parent f543cb2b18
commit a6ba0b6678
2 changed files with 38 additions and 79 deletions
@@ -1400,23 +1400,23 @@ id,amount_select,condition_range_min,condition_range_max,amount_percentage,amoun
1700,fix,7485,7500,,-3350.08,,Withholding Tax,Withholding Tax Grid 2019 (Precompte Professionnel Bareme 2019),130,P.P,hr_payroll_rules_baremeIII,range,GROSS,,contrib_register_pp
1701,fix,7500,2147483647,,-3358.1,,Withholding Tax,Withholding Tax Grid 2019 (Precompte Professionnel Bareme 2019),130,P.P,hr_payroll_rules_baremeIII,range,GROSS,,contrib_register_pp
,,,,,,,,,,,,,,,
1410,code,1,1,,,"result = min(36.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1411,code,2,2,,,"result = min(104.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1412,code,3,3,,,"result = min(275.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1413,code,4,4,,,"result = min(483.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1414,code,5,5,,,"result = min(713.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1415,code,6,6,,,"result = min(944.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1416,code,7,7,,,"result = min(1174.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1417,code,8,8,,,"result = min(1428.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1418,code,9,9,,,"result = min(1684.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1419,code,10,10,,,"result = min(1940.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1420,code,11,11,,,"result = min(2196.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1421,code,12,12,,,"result = min(2452.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1422,code,13,13,,,"result = min(2708.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1423,code,14,14,,,"result = min(2964.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1424,code,15,15,,,"result = min(3220.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1425,code,16,16,,,"result = min(3476.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1426,code,17,17,,,"result = min(3732.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1427,code,18,18,,,"result = min(3988.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1428,code,19,19,,,"result = min(4244.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1429,code,20,20,,,"result = min(4500.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1410,code,1,1,,,"result = min(36.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1411,code,2,2,,,"result = min(104.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1412,code,3,3,,,"result = min(275.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1413,code,4,4,,,"result = min(483.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1414,code,5,5,,,"result = min(713.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1415,code,6,6,,,"result = min(944.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1416,code,7,7,,,"result = min(1174.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1417,code,8,8,,,"result = min(1428.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1418,code,9,9,,,"result = min(1684.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1419,code,10,10,,,"result = min(1940.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1420,code,11,11,,,"result = min(2196.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1421,code,12,12,,,"result = min(2452.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1422,code,13,13,,,"result = min(2708.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1423,code,14,14,,,"result = min(2964.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1424,code,15,15,,,"result = min(3220.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1425,code,16,16,,,"result = min(3476.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1426,code,17,17,,,"result = min(3732.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1427,code,18,18,,,"result = min(3988.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1428,code,19,19,,,"result = min(4244.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1429,code,20,20,,,"result = min(4500.0, - (categories.PP + categories.FamRed + categories.ChA))",Child Allowance Belgium,Child Allowance Belgium,142,Ch.A,hr_payroll_rules_child,range,employee.dependent_children,,
1 id amount_select condition_range_min condition_range_max amount_percentage amount_fix amount_python_compute name category_id sequence code parent_rule_id/id condition_select condition_range amount_percentage_base register_id/id
1400 1700 fix 7485 7500 -3350.08 Withholding Tax Withholding Tax Grid 2019 (Precompte Professionnel Bareme 2019) 130 P.P hr_payroll_rules_baremeIII range GROSS contrib_register_pp
1401 1701 fix 7500 2147483647 -3358.1 Withholding Tax Withholding Tax Grid 2019 (Precompte Professionnel Bareme 2019) 130 P.P hr_payroll_rules_baremeIII range GROSS contrib_register_pp
1402
1403 1410 code 1 1 result = min(36.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(36.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1404 1411 code 2 2 result = min(104.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(104.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1405 1412 code 3 3 result = min(275.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(275.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1406 1413 code 4 4 result = min(483.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(483.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1407 1414 code 5 5 result = min(713.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(713.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1408 1415 code 6 6 result = min(944.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(944.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1409 1416 code 7 7 result = min(1174.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(1174.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1410 1417 code 8 8 result = min(1428.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(1428.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1411 1418 code 9 9 result = min(1684.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(1684.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1412 1419 code 10 10 result = min(1940.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(1940.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1413 1420 code 11 11 result = min(2196.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(2196.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1414 1421 code 12 12 result = min(2452.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(2452.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1415 1422 code 13 13 result = min(2708.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(2708.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1416 1423 code 14 14 result = min(2964.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(2964.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1417 1424 code 15 15 result = min(3220.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(3220.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1418 1425 code 16 16 result = min(3476.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(3476.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1419 1426 code 17 17 result = min(3732.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(3732.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1420 1427 code 18 18 result = min(3988.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(3988.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1421 1428 code 19 19 result = min(4244.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(4244.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
1422 1429 code 20 20 result = min(4500.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA)) result = min(4500.0, - (categories.PP + categories.FamRed + categories.ChA)) Child Allowance Belgium Child Allowance Belgium 142 Ch.A hr_payroll_rules_child range employee.dependent_children
@@ -74,11 +74,6 @@
<field name="code">FamRed</field>
<field name="parent_id" ref="hr_payroll.DED"/>
</record>
<record id="hr_salary_rule_pp_reductions" model="hr.salary.rule.category">
<field name="name">Withholding Tax Reduction</field>
<field name="code">PPRed</field>
<field name="parent_id" ref="hr_payroll.DED"/>
</record>
<record id="hr_salary_rule_category_spec_soc_contribution" model="hr.salary.rule.category">
<field name="name">Special social contribution</field>
<field name="code">SSC</field>
@@ -230,40 +225,6 @@ else:
<field name="condition_python">result = employee.resident_bool==True</field>
<field name="appears_on_payslip" eval="False"/>
</record>
<record id="hr_salary_rule_pp_reduction_employees" model="hr.salary.rule">
<field name="category_id" ref="hr_salary_rule_pp_reductions"/>
<field name="name">Withholding Tax Reduction for Low Salaries (ONSS)</field>
<field name="code">PPRed.1</field>
<field name="sequence">132</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT &lt;= 2431.27</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">
salary = categories.BRUT
percentage = 0.2803
if salary &lt;= 1577.89:
result = 193.79 * percentage
elif salary &lt;= 2461.27:
result = (193.79 - (0.2194 * (salary - 1577.89))) * percentage
</field>
</record>
<record id="hr_salary_rule_pp_reduction_workers" model="hr.salary.rule">
<field name="category_id" ref="hr_salary_rule_pp_reductions"/>
<field name="name">Withholding Tax Reduction for Low Salaries (ONSS)</field>
<field name="code">PPRed.2</field>
<field name="sequence">133</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT &lt;= 2431.27</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">
salary = categories.BRUT
percentage = 0.2803
if salary &lt;= 1577.89:
result = 209.29 * percentage
elif salary &lt;= 2461.27:
result = (209.29 - (0.2369 * (salary - 1577.89))) * percentage
</field>
</record>
<record id="hr_payroll_rules_child_alw" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll_head_child_alw"/>
<field name="name">Child Allowance Belgium</field>
@@ -271,7 +232,7 @@ elif salary &lt;= 2461.27:
<field name="sequence">140</field>
<field name="amount_select">fix</field>
<field name="condition_select">python</field>
<field name="condition_python">result = bool(employee.dependent_children) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = bool(employee.dependent_children) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
</record>
<record id="hr_payroll_rules_child" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll_head_child_alw"/>
@@ -288,7 +249,7 @@ elif salary &lt;= 2461.27:
a) Reduction for dependent children</field>
<field name="condition_select">python</field>
<field name="condition_python">result = bool(employee.dependent_children) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = bool(employee.dependent_children) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
</record>
<record id="hr_salary_rule_other_family_charges_reductions" model="hr.salary.rule">
<field name="category_id" ref="hr_salary_rule_category_family_reductions"/>
@@ -306,9 +267,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Iso</field>
<field name="sequence">144</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.marital in ['divorced', 'single', 'widower']) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.marital in ['divorced', 'single', 'widower']) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(25.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(25.00, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_isolated_parent" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -317,9 +278,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Iso.Par</field>
<field name="sequence">144</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.marital == 'widower' or (employee.marital in ['divorced', 'single', 'widower'] and employee.dependent_children)) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.marital == 'widower' or (employee.marital in ['divorced', 'single', 'widower'] and employee.dependent_children)) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(36.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(36.00, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_disabled" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -328,9 +289,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Dis</field>
<field name="sequence">145</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.disabled) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.disabled) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(36.00, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(36.00, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_seniors" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -339,9 +300,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Seniors</field>
<field name="sequence">146</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.other_dependent_people and employee.dependent_seniors) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.other_dependent_people and employee.dependent_seniors) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(73.0 * employee.dependent_seniors, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(73.0 * employee.dependent_seniors, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_juniors" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -350,9 +311,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Juniors</field>
<field name="sequence">147</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.other_dependent_people and employee.dependent_juniors) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.other_dependent_people and employee.dependent_juniors) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(36.0 * employee.dependent_juniors, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(36.0 * employee.dependent_juniors, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_insufficient_net" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -361,9 +322,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Spouse.Net</field>
<field name="sequence">148</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and employee.spouse_net_revenue &lt;= 225.0) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and employee.spouse_net_revenue &lt;= 225.0) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(110.50, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(110.50, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_salary_rule_reduction_insufficient_other_net" model="hr.salary.rule">
<field name="category_id" ref='hr_salary_rule_category_family_reductions'/>
@@ -372,9 +333,9 @@ elif salary &lt;= 2461.27:
<field name="code">Red.Spouse.Oth.Net</field>
<field name="sequence">149</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and not employee.spouse_net_revenue and employee.spouse_other_net_revenue &lt;= 450.0) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.marital in ['married', 'cohabitant'] and employee.spouse_fiscal_status=='with income' and not employee.spouse_net_revenue and employee.spouse_other_net_revenue &lt;= 450.0) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = min(220.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">result = min(220.0, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_payroll_rules_spouse_handicap" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll_head_div_net"/>
@@ -383,9 +344,9 @@ elif salary &lt;= 2461.27:
<field name="code">Sp.handicap</field>
<field name="sequence">150</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (employee.disabled_spouse_bool==True) and (categories.PP + categories.PPRed + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="condition_python">result = (employee.disabled_spouse_bool==True) and (categories.PP + categories.FamRed + categories.ChA &lt; 0.0)</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">min(36.0, - (categories.PP + categories.PPRed + categories.FamRed + categories.ChA))</field>
<field name="amount_python_compute">min(36.0, - (categories.PP + categories.FamRed + categories.ChA))</field>
</record>
<record id="hr_payroll_rules_parent_company_car" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll_head_div_impos"/>
@@ -545,7 +506,6 @@ result = -contract.car_atn
ref('hr_salary_rule_representation_fees'),
ref('hr_payroll_rules_suppl_net'),
ref('hr_payroll_rules_retained_net'),
ref('hr_salary_rule_pp_reduction_employees'),
])]" name="rule_ids"/>
<field name="company_id" ref="base.main_company"/>
@@ -570,7 +530,6 @@ result = -contract.car_atn
ref('hr_salary_rule_representation_fees'),
ref('hr_payroll_rules_suppl_net'),
ref('hr_payroll_rules_retained_net'),
ref('hr_salary_rule_pp_reduction_workers')
])]" name="rule_ids"/>
<field name="company_id" ref="base.main_company"/>
<field name="parent_id" ref="hr_payroll.structure_base"/>