fix: hide old_parent field by default in Tree DocTypes (#37410)

Co-authored-by: Vibhuti Garachh <vibhutigarachh4@gmail.com>
This commit is contained in:
Ankush Menat 2026-02-23 18:13:12 +05:30 committed by GitHub
parent 85e0fdaa6c
commit fc5ea75350
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -992,7 +992,13 @@ class DocType(Document):
self.append("fields", {"label": "Is Group", "fieldtype": "Check", "fieldname": "is_group"})
self.append(
"fields",
{"label": "Old Parent", "fieldtype": "Link", "options": self.name, "fieldname": "old_parent"},
{
"label": "Old Parent",
"fieldtype": "Link",
"options": self.name,
"fieldname": "old_parent",
"hidden": 1,
},
)
parent_field_label = f"Parent {self.name}"