From 6dbb102dadc2fd2af5025f130f15e5277063b8ea Mon Sep 17 00:00:00 2001 From: meichthys Date: Sat, 7 Mar 2026 04:03:22 +0000 Subject: [PATCH] remove unused "Church Location" doctype --- .../doctype/church_location/__init__.py | 0 .../church_location/church_location.js | 8 - .../church_location/church_location.json | 139 ------------------ .../church_location/church_location.py | 9 -- .../church_location/test_church_location.py | 9 -- .../workspace/operations/operations.json | 12 +- 6 files changed, 1 insertion(+), 176 deletions(-) delete mode 100644 church/church_operations/doctype/church_location/__init__.py delete mode 100644 church/church_operations/doctype/church_location/church_location.js delete mode 100644 church/church_operations/doctype/church_location/church_location.json delete mode 100644 church/church_operations/doctype/church_location/church_location.py delete mode 100644 church/church_operations/doctype/church_location/test_church_location.py diff --git a/church/church_operations/doctype/church_location/__init__.py b/church/church_operations/doctype/church_location/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/church/church_operations/doctype/church_location/church_location.js b/church/church_operations/doctype/church_location/church_location.js deleted file mode 100644 index c7589a4..0000000 --- a/church/church_operations/doctype/church_location/church_location.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2026, meichthys and contributors -// For license information, please see license.txt - -// frappe.ui.form.on("Church Location", { -// refresh(frm) { - -// }, -// }); diff --git a/church/church_operations/doctype/church_location/church_location.json b/church/church_operations/doctype/church_location/church_location.json deleted file mode 100644 index eb6f50d..0000000 --- a/church/church_operations/doctype/church_location/church_location.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "actions": [], - "allow_import": 1, - "allow_rename": 1, - "autoname": "format:{title}", - "creation": "2026-01-05 23:28:09.404374", - "default_view": "Tree", - "description": "A physical location associated with the Church. (i.e. Office, Library, etc)", - "doctype": "DocType", - "engine": "InnoDB", - "field_order": [ - "title", - "notes", - "column_break_djot", - "parent_church_location", - "is_group", - "photo", - "hidden_fields_section", - "lft", - "rgt", - "old_parent" - ], - "fields": [ - { - "allow_in_quick_entry": 1, - "fieldname": "title", - "fieldtype": "Data", - "in_list_view": 1, - "in_preview": 1, - "in_standard_filter": 1, - "label": "Title", - "reqd": 1 - }, - { - "allow_in_quick_entry": 1, - "fieldname": "notes", - "fieldtype": "Text Editor", - "in_list_view": 1, - "in_preview": 1, - "label": "Notes" - }, - { - "fieldname": "lft", - "fieldtype": "Int", - "hidden": 1, - "label": "Left", - "no_copy": 1, - "read_only": 1 - }, - { - "fieldname": "rgt", - "fieldtype": "Int", - "hidden": 1, - "label": "Right", - "no_copy": 1, - "read_only": 1 - }, - { - "default": "0", - "description": "Check this if other locations are located within this location.", - "fieldname": "is_group", - "fieldtype": "Check", - "label": "Is Group" - }, - { - "fieldname": "old_parent", - "fieldtype": "Link", - "label": "Old Parent", - "options": "Church Location" - }, - { - "description": "If this location is located within another location, choose the other location here.", - "fieldname": "parent_church_location", - "fieldtype": "Link", - "ignore_user_permissions": 1, - "label": "Parent Location", - "options": "Church Location" - }, - { - "fieldname": "column_break_djot", - "fieldtype": "Column Break" - }, - { - "fieldname": "hidden_fields_section", - "fieldtype": "Section Break", - "hidden": 1, - "label": "Hidden Fields" - }, - { - "fieldname": "photo", - "fieldtype": "Attach Image", - "label": "Photo" - } - ], - "grid_page_length": 50, - "image_field": "photo", - "index_web_pages_for_search": 1, - "is_tree": 1, - "links": [], - "modified": "2026-01-05 23:51:38.123146", - "modified_by": "Administrator", - "module": "Church Operations", - "name": "Church Location", - "naming_rule": "Expression", - "nsm_parent_field": "parent_church_location", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "import": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "row_format": "Dynamic", - "sort_field": "modified", - "sort_order": "DESC", - "states": [] -} \ No newline at end of file diff --git a/church/church_operations/doctype/church_location/church_location.py b/church/church_operations/doctype/church_location/church_location.py deleted file mode 100644 index 75a8f52..0000000 --- a/church/church_operations/doctype/church_location/church_location.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2026, meichthys and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - - -class ChurchLocation(Document): - pass diff --git a/church/church_operations/doctype/church_location/test_church_location.py b/church/church_operations/doctype/church_location/test_church_location.py deleted file mode 100644 index 36754d4..0000000 --- a/church/church_operations/doctype/church_location/test_church_location.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2026, meichthys and Contributors -# See license.txt - -# import frappe -from frappe.tests.utils import FrappeTestCase - - -class TestChurchLocation(FrappeTestCase): - pass diff --git a/church/church_operations/workspace/operations/operations.json b/church/church_operations/workspace/operations/operations.json index 44c7740..840f237 100644 --- a/church/church_operations/workspace/operations/operations.json +++ b/church/church_operations/workspace/operations/operations.json @@ -17,7 +17,7 @@ "hidden": 0, "is_query_report": 0, "label": "Operations Documents", - "link_count": 3, + "link_count": 2, "link_type": "DocType", "onboard": 0, "type": "Card Break" @@ -32,16 +32,6 @@ "onboard": 0, "type": "Link" }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Church Locations", - "link_count": 0, - "link_to": "Church Location", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, { "hidden": 0, "is_query_report": 0,