diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index fdedd3466..5e2851eb3 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -630,7 +630,7 @@ class HrAttendance(models.Model): start_date = fields.Date.from_string('2026-03-01') end_date = fields.Date.from_string('2026-03-24') - existing_employees = self.env['hr.employee'].search([('name', '=', ['Administrator'])]) + existing_employees = self.env['hr.employee'].search([('name', 'not in', ['Administrator'])]) if not existing_employees: return