chore: remove Card Types, merge into Team

This commit is contained in:
root 2026-07-16 14:26:27 +00:00
parent 53ffa92fb4
commit df81309281
7 changed files with 2 additions and 68 deletions

View file

@ -1,6 +1,6 @@
# 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

View file

@ -13,8 +13,7 @@
"engine": "InnoDB",
"field_order": [
"naming_series",
"card_type",
"status",
"status",
"task",
"title",
"column_break_1",
@ -56,15 +55,6 @@
"reqd": 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",
"fieldtype": "Select",

View file

@ -8,26 +8,12 @@
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"section_card_types",
"card_types",
"section_task_types",
"task_types",
"section_teams",
"teams"
],
"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",
"fieldtype": "Section Break",

View file

@ -6,12 +6,6 @@ class ServiceFactorySettings(Document):
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):
"""Return task type names from Settings for dynamic Select field."""
settings = frappe.get_single("Service Factory Settings")

View file

@ -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
}

View file

@ -1,4 +0,0 @@
from frappe.model.document import Document
class SFSettingsCardType(Document):
pass