字段编辑

This commit is contained in:
李鹏宇
2026-06-01 15:24:55 +08:00
parent 6a202bfec4
commit 82bbea2adb
3 changed files with 4 additions and 4 deletions
@@ -1648,8 +1648,6 @@ class SoongWorkflowMixin(models.AbstractModel):
current_field_name = field_inst.attrib.get("name")
if current_field_name in ["code", "name_title"]:
field_inst.set("readonly", "1")
if field_inst.attrib.get("readonly") == "0":
field_inst.set("readonly", "0")
res["arch"] = etree.tostring(arch, encoding="unicode").replace("\t", "")
return res