fix: hide old_parent field by default in Tree DocTypes (#37410)
Co-authored-by: Vibhuti Garachh <vibhutigarachh4@gmail.com>
This commit is contained in:
parent
85e0fdaa6c
commit
fc5ea75350
1 changed files with 7 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue