[IMP] project_timesheet_holidays: improve demo data timesheet
In this commit before, timesheets are not generated for approved time off. So we have entered the timesheet regarding the approved time off. task-2960247 closes odoo/odoo#103071 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
committed by
Prakash Prajapati
parent
112283081b
commit
e828c72b83
@@ -20,6 +20,9 @@ on leaves. Project and task can be configured company-wide.
|
||||
'security/ir.model.access.csv',
|
||||
|
||||
],
|
||||
'demo': [
|
||||
'data/holiday_timesheets_demo.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
'post_init_hook': 'post_init',
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<function model="hr.leave" name="_remove_resource_leave">
|
||||
<value eval="[ref('hr_holidays.hr_holidays_sl'), ref('hr_holidays.hr_holidays_cl_qdp'), ref('hr_holidays.hr_holidays_sl_qdp')]"/>
|
||||
</function>
|
||||
<function model="hr.leave" name="_timesheet_create_lines">
|
||||
<value eval="[ref('hr_holidays.hr_holidays_sl'), ref('hr_holidays.hr_holidays_cl_qdp'), ref('hr_holidays.hr_holidays_sl_qdp')]"/>
|
||||
</function>
|
||||
<function model="hr.leave" name="_create_resource_leave">
|
||||
<value eval="[ref('hr_holidays.hr_holidays_sl'), ref('hr_holidays.hr_holidays_cl_qdp'), ref('hr_holidays.hr_holidays_sl_qdp')]"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user