Add Communications Module and move letters into it

This commit is contained in:
meichthys 2025-10-04 03:09:57 +00:00
parent f7adda28c1
commit a78423eb87
6 changed files with 119 additions and 1 deletions

View File

View File

@ -0,0 +1,108 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:{date} - {#####}",
"creation": "2025-09-23 21:49:59.122163",
"description": "A letter sent to the church.",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"date",
"is_private",
"column_break_zdbp",
"share_with_church",
"shared_date",
"section_break_qmpt",
"file",
"content"
],
"fields": [
{
"allow_in_quick_entry": 1,
"fieldname": "date",
"fieldtype": "Date",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Date Received",
"reqd": 1
},
{
"default": "0",
"description": "Check this to prevent the letter from being displayed publicly (i.e. on the website).",
"fieldname": "is_private",
"fieldtype": "Check",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Is Private?"
},
{
"fieldname": "column_break_zdbp",
"fieldtype": "Column Break"
},
{
"allow_in_quick_entry": 1,
"default": "0",
"description": "If this letter should be shared with the church.",
"fieldname": "share_with_church",
"fieldtype": "Check",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Share With Church?"
},
{
"description": "The date the letter was shared to the church.",
"fieldname": "shared_date",
"fieldtype": "Date",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Shared Date"
},
{
"fieldname": "section_break_qmpt",
"fieldtype": "Section Break"
},
{
"allow_in_quick_entry": 1,
"fieldname": "file",
"fieldtype": "Attach",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "File"
},
{
"allow_in_quick_entry": 1,
"description": "Content of letter (if not sent as a file)",
"fieldname": "content",
"fieldtype": "Text Editor",
"in_list_view": 1,
"in_preview": 1,
"label": "Content"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2025-10-03 23:08:55.266412",
"modified_by": "Administrator",
"module": "Church Communications",
"name": "Church Letter",
"naming_rule": "Expression",
"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 ChurchLetter(Document):
pass

View File

@ -5,4 +5,5 @@ Church Missions
Church Prayers
Church Foundations
Church Study
Church Customizations
Church Customizations
Church Communications