mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
Merge pull request #46491 from cogk/fix-disable-and-rename-project-template
feat: Allow disabling and renaming Project Template
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"actions": [],
|
"actions": [],
|
||||||
|
"allow_rename": 1,
|
||||||
"autoname": "Prompt",
|
"autoname": "Prompt",
|
||||||
"creation": "2019-02-18 17:23:11.708371",
|
"creation": "2019-02-18 17:23:11.708371",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
@@ -7,6 +8,7 @@
|
|||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"project_type",
|
"project_type",
|
||||||
|
"disabled",
|
||||||
"tasks"
|
"tasks"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
@@ -23,13 +25,20 @@
|
|||||||
"label": "Tasks",
|
"label": "Tasks",
|
||||||
"options": "Project Template Task",
|
"options": "Project Template Task",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "disabled",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Disabled"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-03-27 13:10:21.325199",
|
"modified": "2025-03-12 14:20:57.301906",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Projects",
|
"module": "Projects",
|
||||||
"name": "Project Template",
|
"name": "Project Template",
|
||||||
|
"naming_rule": "Set by user",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
@@ -46,6 +55,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
|
"row_format": "Dynamic",
|
||||||
"sort_field": "creation",
|
"sort_field": "creation",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"states": [],
|
"states": [],
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class ProjectTemplate(Document):
|
|||||||
ProjectTemplateTask,
|
ProjectTemplateTask,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
disabled: DF.Check
|
||||||
project_type: DF.Link | None
|
project_type: DF.Link | None
|
||||||
tasks: DF.Table[ProjectTemplateTask]
|
tasks: DF.Table[ProjectTemplateTask]
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|||||||
Reference in New Issue
Block a user