添加功能

This commit is contained in:
李鹏宇
2026-01-19 11:13:18 +08:00
parent 2adf1f9f2b
commit 643ce8a709
@@ -89,9 +89,9 @@ class SoongWorkflowRecordDeleteWizard(models.TransientModel):
"state": "confirm",
"active": False
})
# 确保在写入前记录仍然存在
if target_record.exists():
target_record.write({'active': False})
# # # 确保在写入前记录仍然存在
# if target_record.exists():
# target_record.write({'is_active': False})
else:
workflow_record = self.env["soong.workflow.record"].sudo().search(
[("id", "=", record.id), ('reclaim_state', "=", True)], limit=1)