[MERGE] merged dev3 branch with cleaning of l10n_be_hr_payroll module (field names and demo)
bzr revid: qdp-launchpad@openerp.com-20111010114658-690hvsh7le9epvxg
This commit is contained in:
commit
e37228bf37
|
@ -19,3 +19,5 @@
|
|||
#
|
||||
##############################################################################
|
||||
import l10n_be_hr_payroll
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
'name': 'Belgian Payroll Rules',
|
||||
'category': 'Localization/Payroll',
|
||||
'author': 'OpenERP SA',
|
||||
'depends': ['hr_payroll','hr_contract'],
|
||||
'depends': ['hr_payroll'],
|
||||
'version': '1.0',
|
||||
'description': """
|
||||
Belgian Payroll Rules
|
||||
|
@ -50,3 +50,5 @@ Belgian Payroll Rules
|
|||
],
|
||||
'installable': True
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -1422,13 +1422,13 @@
|
|||
1418,"fix",9,9,,1452,"Child Allowance Belgium","Child Allowance Belgium",142,"Ch.A","hr_payroll_rules_child","range","employee.children",
|
||||
1419,"fix",10,10,,1673,"Child Allowance Belgium","Child Allowance Belgium",142,"Ch.A","hr_payroll_rules_child","range","employee.children",
|
||||
,,,,,,,,,,,,,
|
||||
1420,"fix",1,1,,85,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1421,"fix",2,2,,418,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1422,"fix",3,3,,817,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1423,"fix",4,4,,1231,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1424,"fix",5,5,,1673,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1425,"fix",6,6,,2115,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1426,"fix",7,7,,2557,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1427,"fix",8,8,,2999,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1428,"fix",9,9,,3441,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1429,"fix",10,10,,3883,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.number_handicap",
|
||||
1420,"fix",1,1,,85,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1421,"fix",2,2,,418,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1422,"fix",3,3,,817,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1423,"fix",4,4,,1231,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1424,"fix",5,5,,1673,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1425,"fix",6,6,,2115,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1426,"fix",7,7,,2557,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1427,"fix",8,8,,2999,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1428,"fix",9,9,,3441,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
1429,"fix",10,10,,3883,"Child Allowance for the Disabled Belgium","Child Allowance Belgium",144,"Ch.Handicap","hr_payroll_rules_child_handicap","range","employee.disabled_children_number",
|
||||
|
|
|
|
@ -20,32 +20,37 @@
|
|||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
import decimal_precision as dp
|
||||
|
||||
class hr_contract_be(osv.osv):
|
||||
_inherit = 'hr.contract'
|
||||
|
||||
_columns = {
|
||||
'reim_travel':fields.float('Reimbursement of travel expenses', digits=(16,2)),
|
||||
'company_car_emp':fields.float('Company car employer', digits=(16,2)),
|
||||
'company_car_wkr':fields.float('Company Car Deduction for Worker', digits=(16,2)),
|
||||
'mis_ex_onss':fields.float('Miscellaneous exempt ONSS ', digits=(16,2)),
|
||||
'ch_value':fields.float('Check Value Meal ', digits=(16,2)),
|
||||
'ch_worker':fields.float('Check Value Meal - by worker ', digits=(16,2)),
|
||||
'insurance':fields.float('Insurance Group - by worker ', digits=(16,2)),
|
||||
'advantage':fields.float('Benefits of various nature ', digits=(16,2)),
|
||||
'suppl_net':fields.float('Net supplements', digits=(16,2)),
|
||||
'retained_net':fields.float('Net retained ', digits=(16,2)),
|
||||
'travel_reimbursement_amount': fields.float('Reimbursement of travel expenses', digits_compute=dp.get_precision('Payroll')),
|
||||
'car_company_amount': fields.float('Company car employer', digits_compute=dp.get_precision('Payroll')),
|
||||
'car_employee_deduction': fields.float('Company Car Deduction for Worker', digits_compute=dp.get_precision('Payroll')),
|
||||
'misc_onss_deduction': fields.float('Miscellaneous exempt ONSS ', digits_compute=dp.get_precision('Payroll')),
|
||||
'meal_voucher_amount': fields.float('Check Value Meal ', digits_compute=dp.get_precision('Payroll')),
|
||||
'meal_voucher_employee_deduction': fields.float('Check Value Meal - by worker ', digits_compute=dp.get_precision('Payroll')),
|
||||
'insurance_employee_deduction': fields.float('Insurance Group - by worker ', digits_compute=dp.get_precision('Payroll')),
|
||||
'misc_advantage_amount': fields.float('Benefits of various nature ', digits_compute=dp.get_precision('Payroll')),
|
||||
'additional_net_amount': fields.float('Net supplements', digits_compute=dp.get_precision('Payroll')),
|
||||
'retained_net_amount': fields.float('Net retained ', digits_compute=dp.get_precision('Payroll')),
|
||||
}
|
||||
|
||||
hr_contract_be()
|
||||
|
||||
class hr_employee_be(osv.osv):
|
||||
_inherit = 'hr.employee'
|
||||
|
||||
_columns = {
|
||||
'statut_fiscal':fields.selection([('without income','Without Income'),('with income','With Income')], 'Tax status for spouse'),
|
||||
'handicap':fields.boolean('Disabled Spouse', help="if recipient spouse is declared disabled by law"),
|
||||
'handicap_child':fields.boolean('Disabled Children', help="if recipient children is/are declared disabled by law"),
|
||||
'resident':fields.boolean('Nonresident', help="if recipient lives in a foreign country"),
|
||||
'number_handicap':fields.integer('Number of disabled children'),
|
||||
'spouse_fiscal_status': fields.selection([('without income','Without Income'),('with income','With Income')], 'Tax status for spouse'),
|
||||
'disabled_spouse_bool': fields.boolean('Disabled Spouse', help="if recipient spouse is declared disabled by law"),
|
||||
'disabled_children_bool': fields.boolean('Disabled Children', help="if recipient children is/are declared disabled by law"),
|
||||
'resident_bool': fields.boolean('Nonresident', help="if recipient lives in a foreign country"),
|
||||
'disabled_children_number': fields.integer('Number of disabled children'),
|
||||
}
|
||||
|
||||
hr_employee_be()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<field name="parent_id" ref="hr_payroll.DED"/>
|
||||
</record>
|
||||
|
||||
<!-- HR SALAR RULES-->
|
||||
<!-- HR SALARY RULES-->
|
||||
<record id="hr_payroll_rules_maj" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_salary"/>
|
||||
<field name="name">Premium pay 108% Worker</field>
|
||||
|
@ -81,7 +81,7 @@
|
|||
<field name="sequence">120</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
<field name="condition_python">result = (((employee.marital=='single') or (employee.marital=='married' and employee.statut_fiscal=='with income')) and (employee.resident!=True))</field>
|
||||
<field name="condition_python">result = (((employee.marital=='single') or (employee.marital=='married' and employee.spouse_fiscal_status=='with income')) and (employee.resident_bool!=True))</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_baremeII" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_pp"/>
|
||||
|
@ -92,7 +92,7 @@
|
|||
<field name="sequence">120</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
<field name="condition_python">result = ((employee.marital=='married' and employee.statut_fiscal=='without income') and (employee.resident!=True))</field>
|
||||
<field name="condition_python">result = ((employee.marital=='married' and employee.spouse_fiscal_status=='without income') and (employee.resident_bool!=True))</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_baremeIII" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_pp"/>
|
||||
|
@ -102,7 +102,7 @@
|
|||
<field name="amount_select">fix</field>
|
||||
<field name="sequence">120</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = employee.resident==True</field>
|
||||
<field name="condition_python">result = employee.resident_bool==True</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_child_alw" model="hr.salary.rule">
|
||||
|
@ -147,7 +147,7 @@
|
|||
the child that is established, regardless of age, that due to developments and recognized
|
||||
before age 65</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(employee.number_handicap)</field>
|
||||
<field name="condition_python">result = bool(employee.disabled_children_number)</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_spouse_handicap" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_net"/>
|
||||
|
@ -157,7 +157,7 @@
|
|||
<field name="sequence">145</field>
|
||||
<field name="amount_fix">31</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = employee.handicap==True</field>
|
||||
<field name="condition_python">result = employee.disabled_spouse_bool==True</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_company_car_parent" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_impos"/>
|
||||
|
@ -175,9 +175,9 @@
|
|||
<field name="code">CAR 1</field>
|
||||
<field name="sequence">15</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.company_car_wkr)</field>
|
||||
<field name="condition_python">result = bool(contract.car_employee_deduction)</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">result = contract.company_car_wkr</field>
|
||||
<field name="amount_python_compute">result = contract.car_employee_deduction</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_company_car_2" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_net"/>
|
||||
|
@ -186,9 +186,9 @@
|
|||
<field name="code">CAR 2</field>
|
||||
<field name="sequence">160</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = contract.company_car_wkr</field>
|
||||
<field name="condition_python">result = contract.car_employee_deduction</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">result = -contract.company_car_wkr</field>
|
||||
<field name="amount_python_compute">result = -contract.car_employee_deduction</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_company_car_emp" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll.COMP"/>
|
||||
|
@ -197,9 +197,9 @@
|
|||
<field name="code">CAR 3</field>
|
||||
<field name="sequence">160</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.company_car_emp)</field>
|
||||
<field name="condition_python">result = bool(contract.car_company_amount)</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">result = -contract.company_car_emp</field>
|
||||
<field name="amount_python_compute">result = -contract.car_company_amount</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_parent_ch" model="hr.salary.rule">
|
||||
|
@ -219,9 +219,9 @@
|
|||
<field name="amount_select">fix</field>
|
||||
<field name="sequence">165</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">result = -(contract.ch_value - contract.ch_worker) * worked_days.WORK100.number_of_days</field>
|
||||
<field name="amount_python_compute">result = -(contract.meal_voucher_amount - contract.meal_voucher_employee_deduction) * worked_days.WORK100.number_of_days</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.ch_value)</field>
|
||||
<field name="condition_python">result = bool(contract.meal_voucher_amount)</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_ch_worker" model="hr.salary.rule">
|
||||
|
@ -231,10 +231,10 @@
|
|||
<field name="code">Meal Check</field>
|
||||
<field name="sequence">165</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.ch_worker)</field>
|
||||
<field name="condition_python">result = bool(contract.meal_voucher_employee_deduction)</field>
|
||||
<field name="amount_select">percentage</field>
|
||||
<field name="amount_percentage">-100.0</field>
|
||||
<field name="amount_percentage_base">contract.ch_worker</field>
|
||||
<field name="amount_percentage_base">contract.meal_voucher_employee_deduction</field>
|
||||
<field name="quantity">worked_days.WORK100.number_of_days</field>
|
||||
<field name="appears_on_payslip" eval="True"/>
|
||||
</record>
|
||||
|
@ -245,8 +245,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">65</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.reim_travel)</field>
|
||||
<field name="amount_python_compute">result = contract.reim_travel</field>
|
||||
<field name="condition_python">result = bool(contract.travel_reimbursement_amount)</field>
|
||||
<field name="amount_python_compute">result = contract.travel_reimbursement_amount</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_mis_ex_onss" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll.DED"/>
|
||||
|
@ -255,8 +255,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">165</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.mis_ex_onss)</field>
|
||||
<field name="amount_python_compute">result = -contract.mis_ex_onss</field>
|
||||
<field name="condition_python">result = bool(contract.misc_onss_deduction)</field>
|
||||
<field name="amount_python_compute">result = -contract.misc_onss_deduction</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_insurance" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll.DED"/>
|
||||
|
@ -265,8 +265,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">165</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.insurance)</field>
|
||||
<field name="amount_pyton_compute">result = -contract.insurance</field>
|
||||
<field name="condition_python">result = bool(contract.insurance_employee_deduction)</field>
|
||||
<field name="amount_pyton_compute">result = -contract.insurance_employee_deduction</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_advantage" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll.ALW"/>
|
||||
|
@ -275,8 +275,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">10</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.advantage)</field>
|
||||
<field name="amount_python_compute">result = contract.advantage</field>
|
||||
<field name="condition_python">result = bool(contract.misc_advantage_amount)</field>
|
||||
<field name="amount_python_compute">result = contract.misc_advantage_amount</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_suppl_net" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_net"/>
|
||||
|
@ -285,8 +285,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">185</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.suppl_net)</field>
|
||||
<field name="amount_python_compute">result = contract.suppl_net</field>
|
||||
<field name="condition_python">result = bool(contract.additional_net_amount)</field>
|
||||
<field name="amount_python_compute">result = contract.additional_net_amount</field>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_retained_net" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_net"/>
|
||||
|
@ -295,8 +295,8 @@
|
|||
<field name="amount_select">code</field>
|
||||
<field name="sequence">190</field>
|
||||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.retained_net)</field>
|
||||
<field name="amount_python_compute">result = -contract.retained_net</field>
|
||||
<field name="condition_python">result = bool(contract.retained_net_amount)</field>
|
||||
<field name="amount_python_compute">result = -contract.retained_net_amount</field>
|
||||
</record>
|
||||
<record id="hr_payroll_salary_structure_employee" model="hr.payroll.structure">
|
||||
<field name="code">C.P.218</field>
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
<field name="name">Bonamy's Contract (Belgium payroll C.P. 218)</field>
|
||||
<field name="struct_id" ref="hr_payroll_salary_structure_employee"/>
|
||||
<field eval="2500.0" name="wage"/>
|
||||
<field eval="6.0" name="ch_value"/>
|
||||
<field eval="1.09" name="ch_worker"/>
|
||||
<field eval="250.0" name="company_car_emp"/>
|
||||
<field eval="110" name="company_car_wkr"/>
|
||||
<field eval="50.0" name="suppl_net"/>
|
||||
<field eval="6.0" name="meal_voucher_amount"/>
|
||||
<field eval="1.09" name="meal_voucher_employee_deduction"/>
|
||||
<field eval="250.0" name="car_company_amount"/>
|
||||
<field eval="110" name="car_employee_deduction"/>
|
||||
<field eval="50.0" name="additional_net_amount"/>
|
||||
<field name="working_hours" ref="resource.timesheet_group1"/>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="hr_contract_form_inherit" model="ir.ui.view">
|
||||
|
||||
<record id="hr_contract_form_l10n_be_inherit" model="ir.ui.view">
|
||||
<field name="name">hr.contract.form.inherit</field>
|
||||
<field name="model">hr.contract</field>
|
||||
<field name="type">form</field>
|
||||
|
@ -10,29 +11,29 @@
|
|||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page[@name='information']/group[@name='right_column']/field[@name='struct_id']" position="after">
|
||||
<field name="reim_travel"/>
|
||||
<field name="company_car_emp"/>
|
||||
<field name="mis_ex_onss"/>
|
||||
<field name="ch_value"/>
|
||||
<field name="advantage"/>
|
||||
<field name="travel_reimbursement_amount"/>
|
||||
<field name="car_company_amount"/>
|
||||
<field name="misc_onss_deduction"/>
|
||||
<field name="meal_voucher_amount"/>
|
||||
<field name="misc_advantage_amount"/>
|
||||
<separator string="Miscellaneous" colspan="2"/>
|
||||
<field name="suppl_net"/>
|
||||
<field name="retained_net"/>
|
||||
<field name="additional_net_amount"/>
|
||||
<field name="retained_net_amount"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='trial_date_end']" position="after">
|
||||
<group colspan="2" col="2">
|
||||
<separator string="by Worker" colspan="2"/>
|
||||
<field name="insurance"/>
|
||||
<field name="ch_worker"/>
|
||||
<field name="company_car_wkr"/>
|
||||
<field name="insurance_employee_deduction"/>
|
||||
<field name="meal_voucher_employee_deduction"/>
|
||||
<field name="car_employee_deduction"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_employee_marital_required_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.employee.inherit.form</field>
|
||||
<!-- <record id="view_employee_marital_required_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.inherit.form</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="type">form</field>
|
||||
<field name="priority">25</field>
|
||||
|
@ -41,31 +42,32 @@
|
|||
<field name="marital" position="replace">
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</record> -->
|
||||
|
||||
<record id="hr_contract_hr_hr_employee_view_for" model="ir.ui.view">
|
||||
<field name="name">hr.hr.employee.view.for</field>
|
||||
<record id="hr_employee_form__l10n_be_view_for" model="ir.ui.view">
|
||||
<field name="name">hr.employee.inherit.form</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="priority">30</field>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='birthday']" position="after">
|
||||
<!-- <xpath expr="/form/notebook/page/group/field[@name='birthday']" position="after">
|
||||
<field name="marital" required="True"/>
|
||||
</xpath>
|
||||
</xpath> -->
|
||||
<xpath expr="/form/notebook/page/group/field[@name='gender']" position="before">
|
||||
<field name="resident" eval="False"/>
|
||||
<field name="resident_bool" eval="False"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='marital']" position="after">
|
||||
<field name="statut_fiscal" attrs="{'invisible':[('marital','!=','married')],'required':[('marital','=','married')]}" colspan="1" help="if spouse has professionnel income or not"/>
|
||||
<field name="handicap" attrs="{'invisible':[('marital','!=','married')]}" colspan="1"/>
|
||||
<field name="spouse_fiscal_status" attrs="{'invisible':[('marital','!=','married')],'required':[('marital','=','married')]}" colspan="1" help="if spouse has professionnel income or not"/>
|
||||
<field name="disabled_spouse_bool" attrs="{'invisible':[('marital','!=','married')]}" colspan="1"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='children']" position="after">
|
||||
<field name="handicap_child"/>
|
||||
<field name="number_handicap" attrs="{'invisible':[('handicap_child','!=',True)]}" colspan="1" help="number of dependent children declared as disabled"/>
|
||||
<field name="disabled_children_bool"/>
|
||||
<field name="disabled_children_number" attrs="{'invisible':[('disabled_children_bool','!=',True)]}" colspan="1" help="number of dependent children declared as disabled"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue