From c6f28e92c4fb391705b4fe3bc5b0beba91a63596 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, 2 Feb 2026 15:43:16 +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
---
.../wizard/soong_workflow_comment_wizard.py | 2 ++
yuthon_contract/__manifest__.py | 1 -
yuthon_contract/security/company_rule.xml | 8 ------
.../views/yuthon_vacation_reports_views.xml | 26 +++++++++----------
4 files changed, 15 insertions(+), 22 deletions(-)
delete mode 100644 yuthon_contract/security/company_rule.xml
diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py
index 5e970b9a6..fd1bf125d 100644
--- a/soong_workflow/wizard/soong_workflow_comment_wizard.py
+++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py
@@ -451,6 +451,8 @@ class SoongWorkflowCommentWizard(models.TransientModel):
if hasattr(related_record, 'self_users_ids'):
user_ids = [employee.user_id.id for employee in self.employee_ids if employee.user_id]
related_record.self_users_ids = [(6, 0, user_ids)] if user_ids else [(5,)]
+ if not self.trans_link_id.name:
+ raise UserError('无转交节点')
record_id.write({'state': self.trans_link_id.name})
if self.circulated_employee_ids:
workflow_record_id.is_log2 = True
diff --git a/yuthon_contract/__manifest__.py b/yuthon_contract/__manifest__.py
index b3ef55074..efa983a9b 100644
--- a/yuthon_contract/__manifest__.py
+++ b/yuthon_contract/__manifest__.py
@@ -13,7 +13,6 @@
'depends': ['hr_contract', 'yuthon_hr_employee', 'base', 'yuthon_salary'],
'data': [
'security/ir.model.access.csv',
- 'security/company_rule.xml',
'data/contract_code_data.xml',
'wizard/yuthon_contract_wizard_views.xml',
'views/inherit_hr_contract_views.xml',
diff --git a/yuthon_contract/security/company_rule.xml b/yuthon_contract/security/company_rule.xml
deleted file mode 100644
index 6df160813..000000000
--- a/yuthon_contract/security/company_rule.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- 合同多公司
-
- [('company_id', 'in', company_ids)]
-
-
\ No newline at end of file
diff --git a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml
index e6db0e4c9..10bee0c6f 100644
--- a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml
@@ -49,19 +49,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -94,6 +81,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+