[IMP] hr_work_entry_holidays: add Work Entry Type to Leave Type

Adds the work entry type in the list view of the leave types.

task-3031983

closes odoo/odoo#103517

Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2022-10-21 09:16:58 +02:00
parent 314e463c2f
commit c84fba790a
2 changed files with 13 additions and 0 deletions
@@ -17,6 +17,7 @@ This application allows you to integrate time off in payslips.
'depends': ['hr_holidays', 'hr_work_entry_contract'],
'data': [
'views/hr_leave_views.xml',
'views/hr_leave_type_views.xml',
],
'demo': ['data/hr_payroll_holidays_demo.xml'],
'installable': True,
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_holiday_status_normal_tree" model="ir.ui.view">
<field name="model">hr.leave.type</field>
<field name="inherit_id" ref="hr_holidays.view_holiday_status_normal_tree"/>
<field name="arch" type="xml">
<field name="allocation_validation_type" position="after">
<field name="work_entry_type_id" optional="show"/>
</field>
</field>
</record>
</odoo>