61 lines
3.7 KiB
XML
61 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_employee_form" model="ir.ui.view">
|
|
<field name="name">hr.employee.form.inherit.l10n_hk_hr_payroll</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr_payroll.payroll_hr_employee_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='personal_information']/group" position="inside">
|
|
<group string='Autopay' invisible="country_code != 'HK'">
|
|
<field name="l10n_hk_autopay_account_type" />
|
|
<field name="l10n_hk_autopay_svid"
|
|
placeholder="0240402"
|
|
invisible="l10n_hk_autopay_account_type != 'svid'"
|
|
required="l10n_hk_autopay_account_type == 'svid'"/>
|
|
<field name="l10n_hk_autopay_email"
|
|
placeholder="susan.wong@abc.com.hk"
|
|
invisible="l10n_hk_autopay_account_type != 'emal'"
|
|
required="l10n_hk_autopay_account_type == 'emal'"/>
|
|
<field name="l10n_hk_autopay_mobile"
|
|
placeholder="+852-92223333"
|
|
invisible="l10n_hk_autopay_account_type != 'mobn'"
|
|
required="l10n_hk_autopay_account_type == 'mobn'"/>
|
|
<field name="l10n_hk_autopay_ref" />
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//page[@name='personal_information']//label[@for='private_street']" position="before">
|
|
<field name="l10n_hk_surname" invisible="country_code != 'HK'" />
|
|
<field name="l10n_hk_given_name" invisible="country_code != 'HK'" />
|
|
<field name="l10n_hk_name_in_chinese" invisible="country_code != 'HK'" />
|
|
</xpath>
|
|
<xpath expr="//page[@name='personal_information']//field[@name='spouse_birthdate']" position="after">
|
|
<field name="l10n_hk_spouse_identification_id" invisible="country_code != 'HK' or marital not in ['married', 'cohabitant']" />
|
|
<field name="l10n_hk_spouse_passport_id" invisible="country_code != 'HK' or marital not in ['married', 'cohabitant']" />
|
|
<field name="l10n_hk_spouse_passport_place_of_issue" invisible="country_code != 'HK' or marital not in ['married', 'cohabitant']" />
|
|
</xpath>
|
|
<xpath expr="//page[@name='personal_information']//field[@name='passport_id']" position="after">
|
|
<field name="l10n_hk_passport_place_of_issue" invisible="country_code != 'HK'" />
|
|
</xpath>
|
|
<group name="payroll_group" position="inside">
|
|
<group name="mpf" string="MPF" invisible="country_code != 'HK'">
|
|
<field name="l10n_hk_mpf_vc_option"/>
|
|
<field name="l10n_hk_mpf_vc_percentage" widget="percentage" invisible="l10n_hk_mpf_vc_option != 'custom'"/>
|
|
<field name="l10n_hk_mpf_manulife_account"/>
|
|
|
|
<separator string="Benefits"/>
|
|
<label for="l10n_hk_internet" string="Internet Subscription"/>
|
|
<div class="o_row">
|
|
<field name="l10n_hk_internet" class="o_hr_narrow_field"/>
|
|
<span>/ month</span>
|
|
</div>
|
|
<label for="l10n_hk_rental_id"/>
|
|
<div class="o_row">
|
|
<field name="l10n_hk_rental_id" readonly="1"/>
|
|
<button class="btn btn-link" type="object" name="action_open_rentals">History</button>
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
</odoo>
|