From e3f8fabe3a907586d2ea2773f3a6b49e8ba228ea 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: Thu, 11 Jun 2026 15:03:12 +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_issue/wizard/soong_workflow_comment_wizard_inherit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yuthon_issue/wizard/soong_workflow_comment_wizard_inherit.py b/yuthon_issue/wizard/soong_workflow_comment_wizard_inherit.py index 25b5d52cc..3bb7b7e79 100644 --- a/yuthon_issue/wizard/soong_workflow_comment_wizard_inherit.py +++ b/yuthon_issue/wizard/soong_workflow_comment_wizard_inherit.py @@ -10,7 +10,6 @@ class SoongWorkflowCommentWizard(models.TransientModel): 'wizard_id', 'issue_id', string='议题过滤') avoid_issue_ids = fields.Many2many('issue.library', 'soong_comment_wizard_avoid_issue_rel', 'wizard_id', 'issue_id', string='回避议题') - avoid_employee_ids = fields.Many2many('hr.employee', 'employee_ids_avoid_rel', 'custom_id', 'employee_id', string="回避人员",) avoid_comment = fields.Char(string='回避意见') @api.depends('avoid_comment') @@ -32,4 +31,4 @@ class SoongWorkflowCommentWizard(models.TransientModel): if not self.is_avoid or not self.avoid_issue_ids: return for issue in self.avoid_issue_ids: - issue.log_avoidance(self.avoid_employee_ids, self.avoid_comment or '') + issue.log_avoidance(self.env.user, self.avoid_comment or '')