From bd8ec0df82850ea387838d876a18690b0c1013d7 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: Wed, 4 Feb 2026 15:00:41 +0800 Subject: [PATCH 1/2] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 66b8cdd61..a4133615a 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -583,7 +583,7 @@ class HrAttendance(models.Model): 若没有则创建一条默认记录 """ start_date = fields.Date.from_string('2026-01-01') - end_date = fields.Date.from_string('2026-01-30') + end_date = fields.Date.from_string('2026-01-31) existing_employees = self.env['hr.employee'].search([('name', 'not in', ['Administrator'])]) if not existing_employees: From 4908ca4e10d9196de974fde9e17bd82205f8cb4a 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: Wed, 4 Feb 2026 15:00:55 +0800 Subject: [PATCH 2/2] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index a4133615a..e088a11d9 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -583,7 +583,7 @@ class HrAttendance(models.Model): 若没有则创建一条默认记录 """ start_date = fields.Date.from_string('2026-01-01') - end_date = fields.Date.from_string('2026-01-31) + end_date = fields.Date.from_string('2026-01-31') existing_employees = self.env['hr.employee'].search([('name', 'not in', ['Administrator'])]) if not existing_employees: