From b153599bdd4a97520ae2a70c61bdeae8d3cf55ca 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, 1 Dec 2025 09:33:52 +0800 Subject: [PATCH 1/2] =?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/yuthon_vacation_reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index c362fe125..8d764ff55 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -436,7 +436,7 @@ class YuthonVacationReports(models.Model): } def attendance_confirmation(self): - reports = self.env["yuthon.vacation.reports"].search([]) + reports = self.env["yuthon.vacation.reports"].search([('employee_id.name', '=', '叶华锋')]) employee_ids = {report.employee_id for report in reports if report.employee_id} for employee in employee_ids: employee_reports = reports.filtered(lambda r: r.employee_id == employee) From 62919e1b9b9f053f7aa9d036f3a4bc36b8ab4a92 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, 1 Dec 2025 09:40:50 +0800 Subject: [PATCH 2/2] =?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/views/soong_workflow_record.xml | 17 ++++++++++++++--- yuthon_work_brand/views/hr_menus.xml | 11 ++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/soong_workflow/views/soong_workflow_record.xml b/soong_workflow/views/soong_workflow_record.xml index dedae8a43..2f7e46514 100644 --- a/soong_workflow/views/soong_workflow_record.xml +++ b/soong_workflow/views/soong_workflow_record.xml @@ -190,14 +190,25 @@ - - 我的流程 + + 待办 ir.actions.act_window soong.workflow.record tree,kanban,search {'header_search_default_approve_state': 1, 'header_search_default_to_do':1, 'check_employee': 1} - [('users_ids', 'in', uid), ('reclaim_state', '=', False)] + [('users_ids', 'in', uid), ('reclaim_state', '=', False), ('soong_state', '=', 'to_do')] + + + + + 已办 + ir.actions.act_window + soong.workflow.record + tree,kanban,search + + {'header_search_default_approve_state': 1, 'header_search_default_to_do':1, 'check_employee': 1} + [('users_ids', 'in', uid), ('reclaim_state', '=', False), ('soong_state', '=', 'done')] diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml index 81a9560a1..e7cd546e8 100644 --- a/yuthon_work_brand/views/hr_menus.xml +++ b/yuthon_work_brand/views/hr_menus.xml @@ -637,8 +637,17 @@ + +