@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user