chore: remove Card Types, merge into Team
This commit is contained in:
parent
53ffa92fb4
commit
df81309281
7 changed files with 2 additions and 68 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Service Factory — ERPNext Custom App Project
|
# Service Factory — ERPNext Custom App Project
|
||||||
|
|
||||||
> **Current Version: V0.1.0015** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step.
|
> **Current Version: V0.1.0016** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step.
|
||||||
|
|
||||||
## Project Overview
|
## Project Overview
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"naming_series",
|
"naming_series",
|
||||||
"card_type",
|
|
||||||
"status",
|
"status",
|
||||||
"task",
|
"task",
|
||||||
"title",
|
"title",
|
||||||
|
|
@ -56,15 +55,6 @@
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"set_only_once": 1
|
"set_only_once": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "card_type",
|
|
||||||
"fieldtype": "Select",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"in_standard_filter": 1,
|
|
||||||
"label": "Card Type",
|
|
||||||
"options": "service_factory.service_factory.doctype.service_factory_settings.service_factory_settings.get_card_type_options",
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "task",
|
"fieldname": "task",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
|
|
||||||
|
|
@ -8,26 +8,12 @@
|
||||||
"editable_grid": 1,
|
"editable_grid": 1,
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"section_card_types",
|
|
||||||
"card_types",
|
|
||||||
"section_task_types",
|
"section_task_types",
|
||||||
"task_types",
|
"task_types",
|
||||||
"section_teams",
|
"section_teams",
|
||||||
"teams"
|
"teams"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
|
||||||
"fieldname": "section_card_types",
|
|
||||||
"fieldtype": "Section Break",
|
|
||||||
"label": "Engagement Card Types"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "card_types",
|
|
||||||
"fieldtype": "Table",
|
|
||||||
"label": "Card Types",
|
|
||||||
"options": "SF Settings Card Type",
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "section_task_types",
|
"fieldname": "section_task_types",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,6 @@ class ServiceFactorySettings(Document):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_card_type_options(doc=None, fieldname=None):
|
|
||||||
"""Return card type names from Settings for dynamic Select field."""
|
|
||||||
settings = frappe.get_single("Service Factory Settings")
|
|
||||||
return [row.card_type_name for row in settings.card_types]
|
|
||||||
|
|
||||||
|
|
||||||
def get_task_type_options(doc=None, fieldname=None):
|
def get_task_type_options(doc=None, fieldname=None):
|
||||||
"""Return task type names from Settings for dynamic Select field."""
|
"""Return task type names from Settings for dynamic Select field."""
|
||||||
settings = frappe.get_single("Service Factory Settings")
|
settings = frappe.get_single("Service Factory Settings")
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
"actions": [],
|
|
||||||
"allow_rename": 0,
|
|
||||||
"autoname": "hash",
|
|
||||||
"creation": "2026-07-16 12:00:00.000000",
|
|
||||||
"doctype": "DocType",
|
|
||||||
"editable_grid": 1,
|
|
||||||
"engine": "InnoDB",
|
|
||||||
"field_order": ["card_type_name"],
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"fieldname": "card_type_name",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"label": "Card Type",
|
|
||||||
"reqd": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"istable": 1,
|
|
||||||
"links": [],
|
|
||||||
"modified": "2026-07-16 12:00:00.000000",
|
|
||||||
"modified_by": "Administrator",
|
|
||||||
"module": "Service Factory",
|
|
||||||
"name": "SF Settings Card Type",
|
|
||||||
"naming_rule": "Random",
|
|
||||||
"owner": "Administrator",
|
|
||||||
"permissions": [],
|
|
||||||
"sort_field": "modified",
|
|
||||||
"sort_order": "DESC",
|
|
||||||
"states": [],
|
|
||||||
"track_changes": 0
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
from frappe.model.document import Document
|
|
||||||
|
|
||||||
class SFSettingsCardType(Document):
|
|
||||||
pass
|
|
||||||
Loading…
Reference in a new issue