diff --git a/yuthon_hr_attendance/models/yuthon_customer_planning.py b/yuthon_hr_attendance/models/yuthon_customer_planning.py index 7d48c6b24..914633b25 100644 --- a/yuthon_hr_attendance/models/yuthon_customer_planning.py +++ b/yuthon_hr_attendance/models/yuthon_customer_planning.py @@ -37,7 +37,7 @@ class YuthonCustomerPlanning(models.Model): role_a = self.env['planning.role'].search([('name', '=', '客服中心')], limit=1) role_template_a = self.env['planning.slot.template'].search([('planning_name', '=', '白班'), ('role_id', '=', role_a.id)]) - role_template_b = self.env['planning.slot.template'].search([('planning_name', '=', '白班'), ('role_id', '=', role_a.id)]) + role_template_b = self.env['planning.slot.template'].search([('planning_name', '=', '值班'), ('role_id', '=', role_a.id)]) current_date = start_date while current_date <= end_date: day_of_week = current_date.weekday()