l10n_ir_hr_payroll/views/hr_contract_views.xml

46 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_hr_contract_form_inherit_ir" model="ir.ui.view">
<field name="name">hr.contract.form.inherit.ir</field>
<field name="model">hr.contract</field>
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
<field name="arch" type="xml">
<group name="salary" position="inside">
<field name="country_code" invisible="1"/>
<label for="l10n_ir_other_allowances" invisible="country_code != 'IR'" string="Other Allowances"/>
<div class="o_row mw-50" name="l10n_ir_other_allowances" invisible="country_code != 'IR'">
<field name="l10n_ir_other_allowances" class="oe_inline o_hr_narrow_field" nolabel="1"/>
<span>/ month</span>
</div>
<label for="l10n_ir_responsibility_allowance" invisible="country_code != 'IR'"
string="Responsibility Allowance"/>
<div class="o_row mw-50" name="l10n_ir_responsibility_allowance" invisible="country_code != 'IR'">
<field name="l10n_ir_responsibility_allowance" class="oe_inline o_hr_narrow_field" nolabel="1"/>
<span>/ month</span>
</div>
</group>
<group name="yearly_benefits" position="after">
<group name="ir_end_of_service" string="End of Service Benefit" invisible="country_code != 'IR'">
<field name="l10n_ir_years_of_service"/>
</group>
</group>
</field>
</record>
<!-- Inherit the existing form view to change the placeholder -->
<record id="hr_payslip_run_form_jalali" model="ir.ui.view">
<field name="name">hr.payslip.run.form.jalali</field>
<field name="model">hr.payslip.run</field>
<field name="inherit_id" ref="hr_payroll.hr_payslip_run_form"/>
<field name="arch" type="xml">
<!-- Change the placeholder on the Batch Name field -->
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="placeholder">مثال: فروردین ۱۴۰۴</attribute>
</xpath>
</field>
</record>
</odoo>