diff --git a/yuthon_holiday/models/inherit_hr_leave_allocation.py b/yuthon_holiday/models/inherit_hr_leave_allocation.py index a791997fe..d5e6f6f37 100644 --- a/yuthon_holiday/models/inherit_hr_leave_allocation.py +++ b/yuthon_holiday/models/inherit_hr_leave_allocation.py @@ -15,7 +15,8 @@ class HrLeaveAllocation(models.Model): new_employee_holidays = fields.Selection([('limit', '限制'), ('un_limit', '不限制')], string="新员工请假") holiday_month = fields.Selection(selection=[(str(i), str(i)) for i in range(1, 13)], string="入职月份", help='入职时长小于此月份时,不可申请此假期') holiday_expiration_date = fields.Selection([('never', '永久'), ('no_never', '不固定')], string="新员工请假") - + start_time = fields.Date(string="开始时间") + end_time = fields.Date(string="结束时间") @api.onchange('users_role_ids') def onchange_employee_ids(self): users_role_list = []