diff --git a/soong_workflow/views/soong_workflow_node_views.xml b/soong_workflow/views/soong_workflow_node_views.xml index 8e32db33e..de6948f83 100644 --- a/soong_workflow/views/soong_workflow_node_views.xml +++ b/soong_workflow/views/soong_workflow_node_views.xml @@ -266,5 +266,4 @@ - diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py index 3232f0ffd..5f8104844 100644 --- a/soong_workflow/wizard/soong_workflow_comment_wizard.py +++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py @@ -181,7 +181,10 @@ class SoongWorkflowCommentWizard(models.TransientModel): ('name', '=', link.name), ('workflow_id', '=', workflow_id.id) ]) - button = node.button_ids[0] if node.button_ids else False + if node.button_ids[0].name != '转交': + button = node.button_ids[-1] if node.button_ids else False + else: + button = node.button_ids[0] if node.button_ids else False if not button: return self.env['hr.employee']