From df499e24397cb1cf062456f358fd5a7760571315 Mon Sep 17 00:00:00 2001 From: Abraham Kalungi <85731451+kalungia@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:48:48 +0200 Subject: [PATCH 1/2] fix(minor): add app hooks --- healthcare/hooks.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/healthcare/hooks.py b/healthcare/hooks.py index 61b62f3171..950faffea7 100644 --- a/healthcare/hooks.py +++ b/healthcare/hooks.py @@ -9,10 +9,21 @@ app_email = "info@earthianslive.com" app_license = "GNU GPL V3" required_apps = ["erpnext"] +app_logo_url = '/assets/healthcare/images/healthcare.svg' +app_home = "/app/healthcare" + +add_to_apps_screen = [ + { + "name": "Marley Health", + "logo": "/assets/healthcare/images/healthcare.svg", + "title": "Marley Health", + "route": "/app/healthcare", + "has_permission": "erpnext.check_app_permission", + } +] # Includes in # ------------------ - # include js, css files in header of desk.html # app_include_css = "/assets/healthcare/css/healthcare.css" app_include_js = "healthcare.bundle.js" From 696924f4003a176f2aa89c60cf159d67f1e4eafe Mon Sep 17 00:00:00 2001 From: Abraham Kalungi <85731451+kalungia@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:50:50 +0200 Subject: [PATCH 2/2] fix: app name in apps screen --- healthcare/hooks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/healthcare/hooks.py b/healthcare/hooks.py index 950faffea7..3951eba3a3 100644 --- a/healthcare/hooks.py +++ b/healthcare/hooks.py @@ -9,12 +9,11 @@ app_email = "info@earthianslive.com" app_license = "GNU GPL V3" required_apps = ["erpnext"] -app_logo_url = '/assets/healthcare/images/healthcare.svg' app_home = "/app/healthcare" add_to_apps_screen = [ { - "name": "Marley Health", + "name": "healthcare", "logo": "/assets/healthcare/images/healthcare.svg", "title": "Marley Health", "route": "/app/healthcare",