From d38fddb73079c555ac7e2a3c865e6da58be5bf5c Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Thu, 5 Dec 2024 20:51:28 +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_hr_attendance/models/yuthon_run_planning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_run_planning.py b/yuthon_hr_attendance/models/yuthon_run_planning.py index a05e1ff12..6bf908b4e 100644 --- a/yuthon_hr_attendance/models/yuthon_run_planning.py +++ b/yuthon_hr_attendance/models/yuthon_run_planning.py @@ -117,7 +117,7 @@ class YuthonRunPlanning(models.Model): start_time = int(self.env['planning.slot.template'].search( [('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).start_time) end_time = int(self.env['planning.slot.template'].search( - [('role_id', '=', role_a.id), ('planning_name', '=', '白夜班')]).end_time) + [('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).end_time) for employee in self.high_run_ids: current_date = first_day_of_month while current_date <= last_day_of_month: @@ -184,7 +184,7 @@ class YuthonRunPlanning(models.Model): start_time = int(self.env['planning.slot.template'].search( [('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).start_time) end_time = int(self.env['planning.slot.template'].search( - [('role_id', '=', role_a.id), ('planning_name', '=', '白夜班')]).end_time) + [('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).end_time) for employee in self.all_run_ids: current_date = first_day_of_month while current_date <= last_day_of_month: