From d0bed2dc7300cbc3b6ed5aeabdffffd41f69aeeb 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, 15 Sep 2025 16:40:01 +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_holiday/models/inherit_hr_leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 178381208..456ec0e79 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -610,7 +610,7 @@ class HolidaysRequestBatch(models.Model): :param end_date: 结束时间 :return: """ - workflow_id = self.env['soong.workflow.record'].search([('code', '=', code)], limit=1).id + workflow_id = self.env['soong.workflow.record'].search([('code', '=', code)], limit=1) attendance_records = self.env['hr.attendance'].search([ ('employee_id', '=', employee_id.id), ('current_data', '>=', start_date),