From 12cc53ee96710324ea430692c9d8f86aa52cd412 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, 30 Mar 2026 19:03:44 +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 --- soong_workflow/wizard/soong_workflow_comment_wizard.py | 2 -- sun_badge_menu/static/src/webclient/actions/client_actions.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py index 68f7d924f..6497d2f71 100644 --- a/soong_workflow/wizard/soong_workflow_comment_wizard.py +++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py @@ -1088,8 +1088,6 @@ class SoongWorkflowCommentWizard(models.TransientModel): 'uid': self.env.uid, } } - workflow_record_id = self.env['soong.workflow.record'].sudo().search([('code', '=', record_id.code)]) - workflow_record_id._compute_is_to_do() def _get_all_employee_partners(self): all_employees = self.env['hr.employee'] diff --git a/sun_badge_menu/static/src/webclient/actions/client_actions.js b/sun_badge_menu/static/src/webclient/actions/client_actions.js index fb058a75c..5399cf732 100644 --- a/sun_badge_menu/static/src/webclient/actions/client_actions.js +++ b/sun_badge_menu/static/src/webclient/actions/client_actions.js @@ -39,7 +39,7 @@ const getWkfAction = (treeId, kanbanId, uid, isSmall) => { domain: [ ['users_ids', 'in', uid], ['reclaim_state', '=', false], - ['soong_state', '=', 'to_do'], + ['is_to_do', '=', True], ], context: { header_search_default_approve_state: 1, From a79b31fbb7b6c8cc545e91506849799928f99f44 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, 30 Mar 2026 19:03:58 +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 --- sun_badge_menu/static/src/webclient/actions/client_actions.js | 1 - 1 file changed, 1 deletion(-) diff --git a/sun_badge_menu/static/src/webclient/actions/client_actions.js b/sun_badge_menu/static/src/webclient/actions/client_actions.js index 5399cf732..d2f3d2459 100644 --- a/sun_badge_menu/static/src/webclient/actions/client_actions.js +++ b/sun_badge_menu/static/src/webclient/actions/client_actions.js @@ -37,7 +37,6 @@ const getWkfAction = (treeId, kanbanId, uid, isSmall) => { res_model: 'soong.workflow.record', views: isSmall ? [[kanbanId, 'kanban']] : [[treeId, 'tree']], domain: [ - ['users_ids', 'in', uid], ['reclaim_state', '=', false], ['is_to_do', '=', True], ],