From 2d6dbccd39b151d2f06af191a3fb8d01011ba64c Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Jul 2025 17:30:59 +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 | 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 c319bedb2..9393e71d9 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -116,7 +116,7 @@ class HrAttendance(models.Model): menu_id = self.env['ir.ui.menu'].search([('name', '=', '我的异常')]) all_employees = self.env['hr.employee'].search([('name', '=', '叶华锋')]) abnormal_employees = [] - current_date = fields.Date.today() + current_date = fields.Date.to_date('2025-04-21') # 使用当前年份2025 month_start = current_date.replace(day=1) month_end = (month_start + relativedelta(months=1) - relativedelta(days=1)) for employee in all_employees: