添加功能

This commit is contained in:
李鹏宇
2026-06-11 15:03:12 +08:00
parent 6ac6b5fc14
commit e3f8fabe3a
@@ -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 '')