diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 2e80be3b7..3b4a1dc3b 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -534,9 +534,9 @@ class HrAttendance(models.Model): 若没有则创建一条默认记录 """ start_date = fields.Date.from_string('2025-12-01') - end_date = fields.Date.from_string('2026-01-09') + end_date = fields.Date.from_string('2025-12-15') - existing_employees = self.env['hr.employee'].search([('name', '=', '王清华')]) + existing_employees = self.env['hr.employee'].search([('name', 'not in', ['Administrator'])]) if not existing_employees: return