Merge pull request #46491 from cogk/fix-disable-and-rename-project-template

feat: Allow disabling and renaming Project Template
This commit is contained in:
ruthra kumar
2025-03-13 08:42:19 +05:30
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "Prompt",
"creation": "2019-02-18 17:23:11.708371",
"doctype": "DocType",
@@ -7,6 +8,7 @@
"engine": "InnoDB",
"field_order": [
"project_type",
"disabled",
"tasks"
],
"fields": [
@@ -23,13 +25,20 @@
"label": "Tasks",
"options": "Project Template Task",
"reqd": 1
},
{
"default": "0",
"fieldname": "disabled",
"fieldtype": "Check",
"label": "Disabled"
}
],
"links": [],
"modified": "2024-03-27 13:10:21.325199",
"modified": "2025-03-12 14:20:57.301906",
"modified_by": "Administrator",
"module": "Projects",
"name": "Project Template",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
@@ -46,6 +55,7 @@
}
],
"quick_entry": 1,
"row_format": "Dynamic",
"sort_field": "creation",
"sort_order": "DESC",
"states": [],

View File

@@ -21,6 +21,7 @@ class ProjectTemplate(Document):
ProjectTemplateTask,
)
disabled: DF.Check
project_type: DF.Link | None
tasks: DF.Table[ProjectTemplateTask]
# end: auto-generated types