From 97b0cfd268c0ca018f85efd55ddeae1a587eb2e3 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, 22 Apr 2026 16:09:56 +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/overtime_approval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/overtime_approval.py b/yuthon_hr_attendance/models/overtime_approval.py index c9a0cae15..1aa76aae6 100644 --- a/yuthon_hr_attendance/models/overtime_approval.py +++ b/yuthon_hr_attendance/models/overtime_approval.py @@ -68,7 +68,7 @@ class OvertimeApprovals(models.Model): for rec in self: workflow_records = self.env['soong.workflow.record'].search([ ('workflow_id.name', '=', '加班'), - ('create_uid', '=', self.env.user.id), + ('create_uid', '=', self.users_id.id), ('reclaim_state', '=', False), ]) if not workflow_records: