[MIG] hr_payroll_timesheet: for Odoo Enterprise 14.0

This commit is contained in:
Jared Kipe
2020-11-27 14:25:10 -08:00
parent c1b9fb4eff
commit 7da29f9972
8 changed files with 172 additions and 142 deletions

View File

@@ -5,15 +5,9 @@
<field name="model">hr.contract</field>
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='advantages']" position="after">
<field name="paid_hourly_timesheet"/>
</xpath>
<xpath expr="//div[@name='wage']/span" position="replace">
<span attrs="{'invisible': [('paid_hourly_timesheet', '=', True)]}">/ pay period</span>
<span attrs="{'invisible': [('paid_hourly_timesheet', '=', False)]}">/ hour</span>
</xpath>
</data>
<xpath expr="//field[@name='wage_type']" position="after">
<field name="paid_hourly_timesheet"/>
</xpath>
</field>
</record>
</odoo>