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: