添加功能

This commit is contained in:
李鹏宇
2026-06-29 18:33:02 +08:00
parent 99722c8e90
commit 194c876b75
@@ -293,6 +293,8 @@ class HrAttendanceDetail(models.Model):
template_domain.append(('planning_name', '=', planning_name))
template_domain.append(('department_id', 'in', all_dept_ids))
template = self.env['planning.slot.template'].search(template_domain, limit=1)
if not planning_slots:
template = None
if not template:
role_templates = [