This commit is contained in:
ljmwkx
2025-02-28 13:57:28 +08:00
parent 900c705483
commit 7aaef85f80
@@ -663,6 +663,10 @@ class SoongWorkflowMixin(models.AbstractModel):
btn_exec_action_el.set(
"invisible", "not id or state != '%s'" % node.node_name
)
if button.name in ["退回", "结束"]:
if not self.sudo().env["soong.workflow.log"].search([("workflow_id", "=", wkf_rec.id), ("node_id", "=", node.id)]).ids:
btn_exec_action_el.set("invisible", "1")
btn_exec_action_el.set(
"context",
"{'btn_key':'%s','active_model':'%s'}"