添加功能
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user