From 40133c7366f38145bbd1657646d14290dfbd5489 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, 11 Mar 2026 10:49:17 +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
---
soong_workflow/wizard/soong_workflow_comment_wizard.py | 2 ++
yuthon_hr_attendance/views/yuthon_holiday_statement.xml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py
index b73f79dd0..f6928b443 100644
--- a/soong_workflow/wizard/soong_workflow_comment_wizard.py
+++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py
@@ -367,6 +367,8 @@ class SoongWorkflowCommentWizard(models.TransientModel):
)
if employee:
return employee
+ elif button.specify_field_id.relation == 'hr.employee':
+ return field_value
else:
department_domain = ['|', ('department_id', '=', field_value.id),
('department_ids', 'in', field_value.id)]
diff --git a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
index b08b4eff8..c4578b7ae 100644
--- a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
+++ b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
@@ -46,8 +46,8 @@
hr.leave
-
+