From d78ae1c11f0c0811f1c70ae84f7373aa5713f427 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Mon, 4 Nov 2024 18:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_holiday/models/inherit_hr_leave_allocation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = []