Add connections to standard doctypes

This commit is contained in:
meichthys 2025-10-09 03:58:37 +00:00
parent 8173324b16
commit bca23a6cd3
15 changed files with 260 additions and 20 deletions

View File

@ -127,8 +127,13 @@
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-10-08 01:01:03.335833",
"links": [
{
"link_doctype": "Church Collection",
"link_fieldname": "event"
}
],
"modified": "2025-10-08 23:02:44.654729",
"modified_by": "Administrator",
"module": "Church Ministries",
"name": "Church Event",

View File

@ -77,8 +77,13 @@
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-10-02 22:28:28.306082",
"links": [
{
"link_doctype": "Church Missionary",
"link_fieldname": "agency"
}
],
"modified": "2025-10-08 23:23:43.351442",
"modified_by": "Administrator",
"module": "Church Missions",
"name": "Church Missionary Agency",

View File

@ -285,9 +285,21 @@
{
"link_doctype": "Church Prayer Request",
"link_fieldname": "related_person"
},
{
"link_doctype": "Church Prayer",
"link_fieldname": "person"
},
{
"link_doctype": "Church Collection",
"link_fieldname": "person"
},
{
"link_doctype": "Church Event",
"link_fieldname": "person"
}
],
"modified": "2025-09-23 22:16:37.429684",
"modified": "2025-10-08 22:56:56.276493",
"modified_by": "Administrator",
"module": "Church People",
"name": "Church Person",

View File

@ -0,0 +1,8 @@
// Copyright (c) 2025, meichthys and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Church Prayer", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,87 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:Prayer {######}",
"creation": "2025-10-08 22:02:44.303677",
"description": "A recorded prayer, written or spoken",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"person",
"file",
"column_break_hfvl",
"content",
"section_break_ojgz",
"topics"
],
"fields": [
{
"fieldname": "person",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Person",
"options": "Church Person",
"reqd": 1,
"search_index": 1
},
{
"fieldname": "file",
"fieldtype": "Attach",
"label": "File"
},
{
"fieldname": "content",
"fieldtype": "Small Text",
"label": "Content"
},
{
"fieldname": "column_break_hfvl",
"fieldtype": "Column Break"
},
{
"fieldname": "section_break_ojgz",
"fieldtype": "Section Break"
},
{
"description": "Items that were prayed for or about. ",
"fieldname": "topics",
"fieldtype": "Table",
"label": "Prayer Topics",
"options": "Church Prayer Topic"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [
{
"link_doctype": "Church Event",
"link_fieldname": "item"
}
],
"modified": "2025-10-08 23:05:58.992282",
"modified_by": "Administrator",
"module": "Church Prayers",
"name": "Church Prayer",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"search_fields": "content, person",
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_views": 1
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, meichthys and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ChurchPrayer(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, meichthys and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestChurchPrayer(FrappeTestCase):
pass

View File

@ -1,7 +1,7 @@
{
"actions": [],
"allow_import": 1,
"autoname": "autoincrement",
"autoname": "format:Prayer Request {######}",
"creation": "2025-09-13 00:16:52.698863",
"description": "A request for prayer from (or for) a `Church Person`.",
"doctype": "DocType",
@ -83,12 +83,18 @@
}
],
"grid_page_length": 50,
"links": [],
"modified": "2025-09-29 23:50:36.602523",
"links": [
{
"link_doctype": "Church Prayer",
"link_fieldname": "topic",
"table_fieldname": "topics"
}
],
"modified": "2025-10-08 23:22:32.976757",
"modified_by": "Administrator",
"module": "Church Prayers",
"name": "Church Prayer Request",
"naming_rule": "Autoincrement",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
@ -106,9 +112,11 @@
],
"quick_entry": 1,
"row_format": "Dynamic",
"show_title_field_in_link": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"title_field": "request",
"track_changes": 1,
"track_seen": 1,
"track_views": 1

View File

@ -0,0 +1,59 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-10-08 22:18:20.512806",
"description": "Parts of a `Church Prayer`, i.e prayer requests, persons, verses, etc.",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"topic_type",
"topic",
"prayer"
],
"fields": [
{
"default": "Church Prayer Request",
"fieldname": "topic_type",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Topic Type",
"link_filters": "[[\"DocType\",\"name\",\"like\",\"Church%\"]]",
"options": "DocType",
"reqd": 1
},
{
"fieldname": "topic",
"fieldtype": "Dynamic Link",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Topic",
"options": "topic_type",
"reqd": 1
},
{
"fieldname": "prayer",
"fieldtype": "Small Text",
"label": "Prayer"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2025-10-08 22:29:25.729014",
"modified_by": "Administrator",
"module": "Church Prayers",
"name": "Church Prayer Topic",
"owner": "Administrator",
"permissions": [],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, meichthys and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ChurchPrayerTopic(Document):
pass

View File

@ -55,7 +55,7 @@
"hidden": 0,
"is_query_report": 0,
"label": "Prayer Request Documents",
"link_count": 3,
"link_count": 4,
"link_type": "DocType",
"onboard": 0,
"type": "Card Break"
@ -89,9 +89,19 @@
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Prayers",
"link_count": 0,
"link_to": "Church Prayer",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
}
],
"modified": "2025-10-03 23:11:35.193488",
"modified": "2025-10-08 23:56:20.099820",
"modified_by": "Administrator",
"module": "Church Prayers",
"name": "Prayers",

View File

@ -41,8 +41,13 @@
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-09-17 22:37:30.632486",
"links": [
{
"link_doctype": "Church Bible Reference",
"link_fieldname": "book"
}
],
"modified": "2025-10-08 23:25:55.315934",
"modified_by": "Administrator",
"module": "Church Study",
"name": "Church Bible Book",
@ -67,4 +72,4 @@
"sort_order": "DESC",
"states": [],
"track_changes": 1
}
}

View File

@ -24,7 +24,8 @@
"in_standard_filter": 1,
"label": "Book",
"options": "Church Bible Book",
"reqd": 1
"reqd": 1,
"search_index": 1
},
{
"allow_in_quick_entry": 1,
@ -60,17 +61,30 @@
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2025-09-17 23:29:46.888067",
"modified": "2025-10-08 23:32:28.440642",
"modified_by": "Administrator",
"module": "Church Study",
"name": "Church Bible Reference",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [],
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
"states": [],
"track_views": 1
}