From 6f5975f1f425f9c42c295fdcbb18bd0446eb9b11 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Wed, 18 Dec 2024 16:13:55 +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_customer_planning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()