From 102eb998acb7db9e7908af1cb8aa87d6b6ec4e29 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Mon, 15 Oct 2018 16:05:28 +0530 Subject: [PATCH] fix(patch): reload healthacre doctypes Signed-off-by: Ameya Shenoy --- erpnext/healthcare/doctype/patient/patient.json | 2 +- erpnext/patches/v11_0/change_healthcare_desktop_icons.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/healthcare/doctype/patient/patient.json b/erpnext/healthcare/doctype/patient/patient.json index 95e7bfcab3..28e5351e67 100644 --- a/erpnext/healthcare/doctype/patient/patient.json +++ b/erpnext/healthcare/doctype/patient/patient.json @@ -1391,7 +1391,7 @@ "issingle": 0, "istable": 0, "max_attachments": 50, - "modified": "2018-10-09 22:09:39.849116", + "modified": "2018-10-14 22:09:39.849116", "modified_by": "Administrator", "module": "Healthcare", "name": "Patient", diff --git a/erpnext/patches/v11_0/change_healthcare_desktop_icons.py b/erpnext/patches/v11_0/change_healthcare_desktop_icons.py index b1b427559c..ed7df503e5 100644 --- a/erpnext/patches/v11_0/change_healthcare_desktop_icons.py +++ b/erpnext/patches/v11_0/change_healthcare_desktop_icons.py @@ -53,6 +53,10 @@ def execute(): change_healthcare_desktop_icons() def change_healthcare_desktop_icons(): + doctypes = ["patient", "patient_encounter", "healthcare_practitioner", + "patient_appointment", "lab_test"] + for doctype in doctypes: + frappe.reload_doc("healthcare", "doctype", doctype) for spec in change_icons_map: frappe.db.sql(""" delete from `tabDesktop Icon`