l10n_br_hr_payroll/view/l10n_br_hr_payroll_data.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Registros de Contribuição -->
<record id="hr_csd_contribution_register" model="hr.contribution.register">
<field name="name">Desconto da Contribuição Sindical</field>
</record>
<record id="hr_vt_contribution_register" model="hr.contribution.register">
<field name="name">Desconto do Vale Transporte</field>
</record>
<record id="hr_inss_contribution_register" model="hr.contribution.register">
<field name="name">Desconto do INSS</field>
</record>
<record id="hr_fgts_contribution_register" model="hr.contribution.register">
<field name="name">Desconto do FGTS</field>
</record>
<record id="hr_ir_contribution_register" model="hr.contribution.register">
<field name="name">Desconto do IR</field>
</record>
<record id="hr_ps_contribution_register" model="hr.contribution.register">
<field name="name">Desconto do Plano de Saúde</field>
</record>
<!-- Regras de Salário -->
<record id="hr_salary_rule_inss" model="hr.salary.rule">
<field name="code">INSS</field>
<field name="name">INSS</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-482.93 if (contract.wage >= 4390.25)
else (-(contract.wage * 0.11)) if (contract.wage >= 2195.13) and (contract.wage <= 4390.24)
else (-(contract.wage * 0.09)) if (contract.wage >= 1317.08) and (contract.wage <= 2195.12)
else -(contract.wage * 0.08))</field>
<field name="sequence" eval="101"/>
<field name="register_id" ref="hr_inss_contribution_register"/>
<field name="note">INSS</field>
</record>
<record id="hr_salary_rule_imp_renda" model="hr.salary.rule">
<field name="code">IR</field>
<field name="name">Imposto de Renda</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-(contract.wage * 0.275) if (contract.wage >= 4463.81)
else (-(contract.wage * 0.225)) if (contract.wage >= 4463.80) and (contract.wage <= 3572.44)
else (-(contract.wage * 0.15)) if (contract.wage >= 2679.30) and (contract.wage <= 3572.43)
else (-(contract.wage * 0.075)) if (contract.wage >= 1787.78) and (contract.wage <= 2679.29)
else -0)</field>
<field eval="102" name="sequence"/>
<field name="register_id" ref="hr_ir_contribution_register"/>
<field name="note">Imposto de Renda Salarial</field>
</record>
<record id="hr_salary_rule_fgts" model="hr.salary.rule">
<field name="code">FGTS</field>
<field name="name">FGTS</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-((contract.wage) * 0.08))</field>
<field name="sequence" eval="103"/>
<field name="register_id" ref="hr_fgts_contribution_register"/>
<field name="note">Empregado terá desconto de 8% de FGTS</field>
</record>
<record id="hr_salary_rule_plano_saude" model="hr.salary.rule">
<field name="code">Plano Saúde</field>
<field name="name">Plano Saúde</field>
<field name="category_id" ref="hr_payroll.ALW"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (contract.health_insurance_father+contract.wage)</field>
<field name="sequence" eval="2"/>
<field name="note">Valor do Plano de Saúde</field>
</record>
<!--
<record id="hr_salary_rule_plano_saude" model="hr.salary.rule">
<field name="code">Plano Saúde</field>
<field name="name">Plano Saúde</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-(contract.health_insurance_father * 0.60)) if (contract.wage >= 2384.00) else (-(contract.health_insurance_father * 0.50)) if (contract.wage >= 1430.01) and (contract.wage <= 2384.00) else (-(contract.health_insurance_father * 0.40)))</field>
<field name="sequence" eval="106"/>
<field name="register_id" ref="hr_ps_contribution_register"/>
<field name="note">Empregado terá desconto sobre seu Plano de Saúde</field>
</record> -->
<record id="hr_salary_rule_plano_saude_filho" model="hr.salary.rule">
<field name="code">Plano Saúde Dependente</field>
<field name="name">Plano Saúde Dependente</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-((contract.health_insurance_dependent) * 1))</field>
<field name="sequence" eval="106"/>
<field name="register_id" ref="hr_ps_contribution_register"/>
<field name="note">Empregado terá desconto sobre seu Plano de Saúde mediante a Dependente</field>
</record>
<record id="hr_salary_rule_csd" model="hr.salary.rule">
<field name="code">CSD</field>
<field name="name">Contribuição Sindical</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (-((contract.wage) * 0.035))</field>
<field name="sequence" eval="104"/>
<field name="register_id" ref="hr_csd_contribution_register"/>
<field name="note">Empregado terá um desconto de 3.5% em um dia do ano.</field>
</record>
<record id="hr_salary_rule_vt" model="hr.salary.rule">
<field name="code">VT</field>
<field name="name">Vale Transporte</field>
<field name="category_id" ref="hr_payroll.DED"/>
<field name="condition_select">python</field>
<field name="condition_python">result = contract.wage</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage_base">contract.wage</field>
<field name="amount_percentage" eval="-6.00"/>
<field name="sequence" eval="105"/>
<field name="register_id" ref="hr_vt_contribution_register"/>
<field name="note"> Empregado terá um desconto de 6% do seu salário mediante ao Vale Transporte.</field>
</record>
</data>
</openerp>