[IMP] hr_payroll_overtime: expose the "Rate" field on Worked Day Lines

This commit is contained in:
Jared Kipe
2020-11-27 16:30:23 -08:00
parent 3da66730d1
commit 0bbd1cfc37
2 changed files with 20 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'data/overtime_data.xml', 'data/overtime_data.xml',
'views/hr_payslip_views.xml',
'views/hr_work_entry_views.xml', 'views/hr_work_entry_views.xml',
'views/resource_calendar_views.xml', 'views/resource_calendar_views.xml',
], ],

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Payslip Form -->
<record id="view_hr_payslip_form_inherit" model="ir.ui.view">
<field name="name">hr.payslip.form.inherit</field>
<field name="model">hr.payslip</field>
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='worked_days_line_ids']/tree/field[@name='number_of_hours']" position="after">
<field name="rate"/>
</xpath>
<xpath expr="//field[@name='worked_days_line_ids']/form//field[@name='number_of_hours']" position="after">
<field name="rate"/>
</xpath>
</field>
</record>
</odoo>