[IMP] hr_payroll_overtime: refactor to abstract override class and use on Work Types themselves

E.g. It is now possible to support "Sunday Pay" where before it was only possible to give "Sunday Overtime Pay" as an override to overtime itself.
This commit is contained in:
Jared Kipe
2020-12-09 15:21:29 -08:00
parent b65a6f2420
commit f61bb6e15c
5 changed files with 104 additions and 24 deletions

View File

@@ -15,6 +15,16 @@
<field name="overtime_type_id"
domain="[('id', '!=', id)]"
attrs="{'required': [('overtime_work_type_id', '!=', False)]}" />
<field name="override_ids" nolabel="1" colspan="4">
<tree editable="top">
<field name="work_type_id"/>
<field name="multiplier"/>
<field name="date"/>
<field name="day_of_week"/>
<field name="name"/>
</tree>
</field>
</group>
</xpath>
</field>