From 470cde64b2a69e2608bb82b2d0b0903041ab9af4 Mon Sep 17 00:00:00 2001 From: meichthys Date: Mon, 22 Sep 2025 03:53:54 +0000 Subject: [PATCH] Add `Church Belief` doctype --- .../church/doctype/church_belief/__init__.py | 0 .../doctype/church_belief/church_belief.js | 8 +++ .../doctype/church_belief/church_belief.json | 69 +++++++++++++++++++ .../doctype/church_belief/church_belief.py | 9 +++ .../church_belief/test_church_belief.py | 9 +++ 5 files changed, 95 insertions(+) create mode 100644 church/church/doctype/church_belief/__init__.py create mode 100644 church/church/doctype/church_belief/church_belief.js create mode 100644 church/church/doctype/church_belief/church_belief.json create mode 100644 church/church/doctype/church_belief/church_belief.py create mode 100644 church/church/doctype/church_belief/test_church_belief.py diff --git a/church/church/doctype/church_belief/__init__.py b/church/church/doctype/church_belief/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church/doctype/church_belief/church_belief.js b/church/church/doctype/church_belief/church_belief.js new file mode 100644 index 0000000..abf98a0 --- /dev/null +++ b/church/church/doctype/church_belief/church_belief.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, meichthys and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Church Belief", { +// refresh(frm) { + +// }, +// }); diff --git a/church/church/doctype/church_belief/church_belief.json b/church/church/doctype/church_belief/church_belief.json new file mode 100644 index 0000000..fc8c63e --- /dev/null +++ b/church/church/doctype/church_belief/church_belief.json @@ -0,0 +1,69 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:{title}", + "creation": "2025-09-17 21:36:27.516552", + "description": "Specific beliefs of the church", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "belief_statement", + "bible_references" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Title", + "reqd": 1, + "unique": 1 + }, + { + "fieldname": "belief_statement", + "fieldtype": "Text Editor", + "in_list_view": 1, + "label": "Belief Statement", + "reqd": 1 + }, + { + "fieldname": "bible_references", + "fieldtype": "Table", + "label": "Bible References", + "options": "Church Bible Reference" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-09-17 23:31:17.156634", + "modified_by": "Administrator", + "module": "Church", + "name": "Church Belief", + "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", + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/church/church/doctype/church_belief/church_belief.py b/church/church/doctype/church_belief/church_belief.py new file mode 100644 index 0000000..b1a0940 --- /dev/null +++ b/church/church/doctype/church_belief/church_belief.py @@ -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 ChurchBelief(Document): + pass diff --git a/church/church/doctype/church_belief/test_church_belief.py b/church/church/doctype/church_belief/test_church_belief.py new file mode 100644 index 0000000..972b6c6 --- /dev/null +++ b/church/church/doctype/church_belief/test_church_belief.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, meichthys and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestChurchBelief(FrappeTestCase): + pass