From 634484aa37c93e7d4030e235641852ac0230f416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 25 May 2026 12:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index b3af8a6dc..6c7f60967 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -637,7 +637,7 @@ class HrAttendance(models.Model): start_date = fields.Date.from_string('2026-05-19') end_date = fields.Date.from_string('2026-05-25') - existing_employees = self.env['hr.employee'].search([('name', '=', '简梓豪')]) + existing_employees = self.env['hr.employee'].search([('user_state', '=', 'in')]) if not existing_employees: return @@ -676,7 +676,6 @@ class HrAttendance(models.Model): 'is_no_card': False, 'is_abnormal': False }) - new_record.compute_attend() def button_source(self):