From fc5ea753507f004e5b72c27466c5fb7c8fa9e70f Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 23 Feb 2026 18:13:12 +0530 Subject: [PATCH] fix: hide old_parent field by default in Tree DocTypes (#37410) Co-authored-by: Vibhuti Garachh --- frappe/core/doctype/doctype/doctype.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frappe/core/doctype/doctype/doctype.py b/frappe/core/doctype/doctype/doctype.py index 0b5557202e..a5f0cc3d52 100644 --- a/frappe/core/doctype/doctype/doctype.py +++ b/frappe/core/doctype/doctype/doctype.py @@ -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}"