From 9b53d67eeea6e704814c7e13fb3dec0ef3f21ee1 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: Sat, 10 Jan 2026 14:39:11 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 2e80be3b7..4c562b8b5 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