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 '')