Merge pull request !821 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2024-12-18 08:14:57 +00:00
committed by Gitee
@@ -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()