comment custom code
This commit is contained in:
parent
8c76d01d5f
commit
894160e02c
|
|
@ -86,15 +86,22 @@ class CompanyResourceCalendar(models.Model):
|
|||
# public_holiday = []
|
||||
# holiday_id = self.env['hr.leave.type'].search([], limit=1)
|
||||
# company = self.env['res.company'].search([], limit=1)
|
||||
# employee = self.env['hr.employee'].search([], limit=1)
|
||||
# leave_calendar = self.env['hr.leave']
|
||||
# employee = self.env['hr.employee'].search([('id', '=', 14)], limit=1)
|
||||
# #leave_calendar = self.env['hr.leave']
|
||||
# leave_calendar = self.env['hr.leave'].with_context(
|
||||
# tracking_disable=True,
|
||||
# mail_activity_automation_skip=True,
|
||||
# leave_fast_create=True,
|
||||
# leave_skip_state_check=True,
|
||||
# )
|
||||
# for comp_global_leave in self.company_global_leave_ids:
|
||||
# public_holiday.append({
|
||||
# 'name': "Holiday"+"/"+comp_global_leave.name,
|
||||
# 'date_from': comp_global_leave.date_from,
|
||||
# 'date_to': comp_global_leave.date_to,
|
||||
# 'holiday_status_id': holiday_id.id,
|
||||
# 'employee_id': employee.id
|
||||
# 'employee_id': employee.id,
|
||||
# 'state': 'validate'
|
||||
# })
|
||||
# for holiday in public_holiday:
|
||||
# existing_calender = leave_calendar.search([('date_from', '=', holiday['date_from'])])
|
||||
|
|
|
|||
Loading…
Reference in New Issue