mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2026-01-07 16:43:04 +02:00
add new module
This commit is contained in:
25
hr_employee_shift/demo/shift_schedule_data.xml
Normal file
25
hr_employee_shift/demo/shift_schedule_data.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<odoo>
|
||||
<data>
|
||||
<delete model="resource.calendar" search="[('id', '=', ref('resource.resource_calendar_std_35h'))]"/>
|
||||
<delete model="resource.calendar" search="[('id', '=', ref('resource.resource_calendar_std_38h'))]"/>
|
||||
<delete model="hr.contract" search="[('id', '=', ref('hr_payroll_community.hr_contract_firstcontract1'))]"/>
|
||||
<delete model="hr.contract" search="[('id', '=', ref('hr_payroll_community.hr_contract_gilles_gravie'))]"/>
|
||||
|
||||
<record id="resource_calendar_std_35h" model="resource.calendar">
|
||||
<field name="name">Morning</field>
|
||||
<field name="company_id" ref="base.main_company"/>
|
||||
<field name="hr_department" ref="hr.dep_management"/>
|
||||
<field name="attendance_ids"
|
||||
eval="[
|
||||
(0, 0, {'name': 'Monday Morning', 'dayofweek': '0', 'hour_from': 8, 'hour_to': 12}),
|
||||
(0, 0, {'name': 'Tuesday Morning', 'dayofweek': '1', 'hour_from': 8, 'hour_to': 12}),
|
||||
(0, 0, {'name': 'Wednesday Morning', 'dayofweek': '2', 'hour_from': 8, 'hour_to': 12}),
|
||||
(0, 0, {'name': 'Thursday Morning', 'dayofweek': '3', 'hour_from': 8, 'hour_to': 12}),
|
||||
(0, 0, {'name': 'Friday Morning', 'dayofweek': '4', 'hour_from': 8, 'hour_to': 12}),
|
||||
]"
|
||||
/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user