添加功能

This commit is contained in:
李鹏宇
2026-01-10 14:43:31 +08:00
parent 96eb173a83
commit 019bcbcfbd
+2 -2
View File
@@ -533,8 +533,8 @@ class HrAttendance(models.Model):
确保选择期间每位员工至少有一条记录
若没有则创建一条默认记录
"""
start_date = fields.Date.from_string('2025-12-01')
end_date = fields.Date.from_string('2025-12-15')
start_date = fields.Date.from_string('2025-12-15')
end_date = fields.Date.from_string('2025-12-31')
existing_employees = self.env['hr.employee'].search([('name', 'not in', ['Administrator'])])
if not existing_employees: