From c42b6891fe9fdab4c36d33ecfa23e748470819c7 Mon Sep 17 00:00:00 2001 From: meichthys Date: Mon, 22 Sep 2025 03:53:54 +0000 Subject: [PATCH] update permissions and mod profile --- .../doctype/church_role/church_role.json | 2 +- church/fixtures/custom_docperm.json | 890 ++++++++++++++++++ church/fixtures/dashboard_chart.json | 10 +- church/fixtures/module_onboarding.json | 8 +- church/fixtures/module_profile.json | 134 ++- church/hooks.py | 8 +- 6 files changed, 1042 insertions(+), 10 deletions(-) create mode 100644 church/fixtures/custom_docperm.json diff --git a/church/church/doctype/church_role/church_role.json b/church/church/doctype/church_role/church_role.json index b6fab1a..1778792 100644 --- a/church/church/doctype/church_role/church_role.json +++ b/church/church/doctype/church_role/church_role.json @@ -59,7 +59,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-09-06 01:56:17.457466", + "modified": "2025-09-19 00:32:20.701494", "modified_by": "Administrator", "module": "Church", "name": "Church Role", diff --git a/church/fixtures/custom_docperm.json b/church/fixtures/custom_docperm.json new file mode 100644 index 0000000..af61487 --- /dev/null +++ b/church/fixtures/custom_docperm.json @@ -0,0 +1,890 @@ +[ + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-13 23:53:08.102778", + "name": "mb9af2o2n7", + "parent": "Church Prayer Request", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-14 00:10:16.388489", + "name": "0cjnoe3uhg", + "parent": "Church Prayer Request Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-14 00:12:10.609601", + "name": "1gb7bb406t", + "parent": "Church Prayer Request Status", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-16 22:34:15.572337", + "name": "bcclsh8s3i", + "parent": "Church Prayer Request", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-18 22:57:24.600480", + "name": "geea7slo1n", + "parent": "Church Belief", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-18 22:57:59.051672", + "name": "gp8k54c90l", + "parent": "Church Belief", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-18 23:03:40.222164", + "name": "k3qojkpe99", + "parent": "Church Bible Book", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-18 23:04:01.940428", + "name": "kalro2h6u0", + "parent": "Church Bible Book", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-18 23:12:39.006624", + "name": "pc6o78rs34", + "parent": "Church Bible Translation", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-18 23:21:46.020542", + "name": "un657rpe8j", + "parent": "Church Bible Translation", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:04:17.566122", + "name": "nkfodrf2t7", + "parent": "Church Collection", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 0, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:04:38.921803", + "name": "nr73q988q8", + "parent": "Church Collection", + "permlevel": 0, + "print": 0, + "read": 0, + "report": 0, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:05:16.819424", + "name": "o701hnmshv", + "parent": "Church Event", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:05:32.558650", + "name": "obv50bkeal", + "parent": "Church Event", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:05:58.316373", + "name": "ojv4ddvs7e", + "parent": "Church Event Attendance Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:06:16.629983", + "name": "opojopm852", + "parent": "Church Event Attendance Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:07:05.327957", + "name": "p8tj9prs6g", + "parent": "Church Event Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:07:21.528766", + "name": "pe1c35vnp3", + "parent": "Church Event Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:07:43.898308", + "name": "pkvht15e94", + "parent": "Church Family", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:08:02.047788", + "name": "pqmn2d27t9", + "parent": "Church Family", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 0, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:08:46.427725", + "name": "q8iho1g2s6", + "parent": "Church Fund", + "permlevel": 0, + "print": 0, + "read": 0, + "report": 0, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:09:10.052505", + "name": "qfs90k6540", + "parent": "Church Information", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:09:27.972958", + "name": "qlhla1kcrk", + "parent": "Church Information", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:09:54.911155", + "name": "qttf6c6cnm", + "parent": "Church Member Status", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:10:11.678666", + "name": "r36k4ebfjr", + "parent": "Church Member Status", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:10:39.946137", + "name": "rbv6r5ur4r", + "parent": "Church Missionary", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:11:00.403721", + "name": "rieqek7rik", + "parent": "Church Missionary", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:11:33.843258", + "name": "rsqehajci1", + "parent": "Church Payment Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 0, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:11:50.476265", + "name": "s22timk6qa", + "parent": "Church Payment Type", + "permlevel": 0, + "print": 0, + "read": 0, + "report": 0, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:12:09.045168", + "name": "s7spsoir2o", + "parent": "Church Person", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:12:28.818910", + "name": "se2cioeqkj", + "parent": "Church Person", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:12:55.038776", + "name": "sm6a2le8q7", + "parent": "Church Person Relation Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:13:11.741011", + "name": "srf9pac0ol", + "parent": "Church Person Relation Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:15:47.312788", + "name": "uc300mbija", + "parent": "Church Prayer Request Status", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:16:23.681059", + "name": "une7iolv62", + "parent": "Church Prayer Request Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "import": 0, + "modified": "2025-09-19 00:17:01.422374", + "name": "v3687b1ua7", + "parent": "Church Role Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church User", + "select": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 1, + "export": 1, + "if_owner": 0, + "import": 1, + "modified": "2025-09-19 00:17:30.709444", + "name": "vcdvgo388c", + "parent": "Church Role Type", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Church Manager", + "select": 1, + "share": 1, + "submit": 0, + "write": 1 + } +] \ No newline at end of file diff --git a/church/fixtures/dashboard_chart.json b/church/fixtures/dashboard_chart.json index dcd4502..846ff68 100644 --- a/church/fixtures/dashboard_chart.json +++ b/church/fixtures/dashboard_chart.json @@ -18,7 +18,7 @@ "heatmap_year": null, "is_public": 0, "is_standard": 1, - "last_synced_on": "2025-09-16 22:05:41.652485", + "last_synced_on": "2025-09-18 22:26:53.523957", "modified": "2025-09-07 00:54:39.868404", "module": "Church", "name": "Church Persons Count", @@ -57,7 +57,7 @@ "heatmap_year": null, "is_public": 1, "is_standard": 1, - "last_synced_on": "2025-09-16 22:05:41.747379", + "last_synced_on": "2025-09-18 22:26:53.618580", "modified": "2025-09-07 00:50:04.955468", "module": "Church", "name": "Church Members Count (New by Month)", @@ -96,7 +96,7 @@ "heatmap_year": null, "is_public": 1, "is_standard": 1, - "last_synced_on": "2025-09-16 22:40:43.607022", + "last_synced_on": "2025-09-18 22:56:44.332210", "modified": "2025-09-14 23:14:26.147339", "module": "Church", "name": "Church Prayer Request Count (Active)", @@ -135,7 +135,7 @@ "heatmap_year": null, "is_public": 0, "is_standard": 1, - "last_synced_on": "2025-09-16 22:05:41.799193", + "last_synced_on": "2025-09-18 22:26:53.677820", "modified": "2025-09-07 00:55:38.760521", "module": "Church", "name": "Church Collections Sum", @@ -174,7 +174,7 @@ "heatmap_year": null, "is_public": 1, "is_standard": 1, - "last_synced_on": "2025-09-16 22:40:43.810928", + "last_synced_on": "2025-09-18 22:56:44.692933", "modified": "2025-09-14 23:14:16.569027", "module": "Church", "name": "Church Prayer Requests (Answered)", diff --git a/church/fixtures/module_onboarding.json b/church/fixtures/module_onboarding.json index 0302a84..3a3a3cc 100644 --- a/church/fixtures/module_onboarding.json +++ b/church/fixtures/module_onboarding.json @@ -12,10 +12,16 @@ "doctype": "Module Onboarding", "documentation_url": "https://github.com/meichthys/church", "is_complete": 0, - "modified": "2025-09-13 01:21:17.537153", + "modified": "2025-09-18 00:48:20.337101", "module": "Church", "name": "Church", "steps": [ + { + "parent": "Church", + "parentfield": "steps", + "parenttype": "Module Onboarding", + "step": "Church Information" + }, { "parent": "Church", "parentfield": "steps", diff --git a/church/fixtures/module_profile.json b/church/fixtures/module_profile.json index 9614605..d47c4e8 100644 --- a/church/fixtures/module_profile.json +++ b/church/fixtures/module_profile.json @@ -30,11 +30,143 @@ "parent": "Church", "parentfield": "block_modules", "parenttype": "Module Profile" + }, + { + "module": "Accounts", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Assets", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Automation", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Bulk Transaction", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Buying", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Contacts", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "CRM", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Custom", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Email", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "ERPNext Integrations", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Integrations", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Maintenance", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Geo", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Projects", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Regional", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Setup", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Social", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Subcontracting", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Support", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Telephony", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Utilities", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" + }, + { + "module": "Workflow", + "parent": "Church", + "parentfield": "block_modules", + "parenttype": "Module Profile" } ], "docstatus": 0, "doctype": "Module Profile", - "modified": "2025-09-13 23:37:23.710971", + "modified": "2025-09-18 23:50:02.346485", "module_profile_name": "Church", "name": "Church" } diff --git a/church/hooks.py b/church/hooks.py index dc7de4a..d6b34f8 100644 --- a/church/hooks.py +++ b/church/hooks.py @@ -113,6 +113,10 @@ fixtures = [ ["role", "in", ("Deacon", "Elder", "Pastor", "Secretary", "Treasurer")] ], }, + { + "dt": "Custom DocPerm", + "filters": [["role", "like", "Church%"]], + }, { "dt": "Dashboard Chart", "filters": [["module", "like", "church"]], @@ -135,7 +139,7 @@ fixtures = [ }, { "dt": "Role", - "filters": [["Name", "in", ["Church Manager", "Church User"]]], + "filters": [["Name", "like", "Church%"]], }, { "dt": "Role Profile", @@ -158,7 +162,7 @@ fixtures = [ # "logo": "/assets/church/logo.png", # "title": "Church", # "route": "/church", -# "has_permission": "church.api.permission.has_app_permission" +# "has_permission": "church.api.permission.has_app_permission", # } # ]