From 524e77f01cb97210c52daa2591e701ad6137ff60 Mon Sep 17 00:00:00 2001 From: meichthys Date: Wed, 19 Nov 2025 04:28:42 +0000 Subject: [PATCH] Add custom portal menu items to fixtures --- church/fixtures/portal_menu_item.json | 32 +++++++++++++++++++++++++++ church/hooks.py | 4 ++++ 2 files changed, 36 insertions(+) create mode 100644 church/fixtures/portal_menu_item.json diff --git a/church/fixtures/portal_menu_item.json b/church/fixtures/portal_menu_item.json new file mode 100644 index 0000000..c8b0f21 --- /dev/null +++ b/church/fixtures/portal_menu_item.json @@ -0,0 +1,32 @@ +[ + { + "docstatus": 0, + "doctype": "Portal Menu Item", + "enabled": 1, + "modified": "2025-11-15 23:38:38.644781", + "name": "4st08lkutb", + "parent": "Portal Settings", + "parentfield": "custom_menu", + "parenttype": "Portal Settings", + "reference_doctype": "Church Prayer Request", + "role": "", + "route": "prayer-request", + "target": null, + "title": "Prayer Requests" + }, + { + "docstatus": 0, + "doctype": "Portal Menu Item", + "enabled": 1, + "modified": "2025-11-15 23:38:38.644781", + "name": "mas674p3kd", + "parent": "Portal Settings", + "parentfield": "custom_menu", + "parenttype": "Portal Settings", + "reference_doctype": "Church Alms Request", + "role": "", + "route": "alms-request", + "target": null, + "title": "Alms Requests" + } +] \ No newline at end of file diff --git a/church/hooks.py b/church/hooks.py index 6d9c909..ac71e45 100644 --- a/church/hooks.py +++ b/church/hooks.py @@ -194,6 +194,10 @@ fixtures = [ "dt": "Onboarding Step", "filters": [["Name", "like", "Church%"]], }, + { + "dt": "Portal Menu Item", + "filters": [["title", "in", ["Prayer Requests", "Alms Requests"]]], + }, { "dt": "Role", "filters": [["Name", "like", "Church%"]],