fix(patch): reload healthacre doctypes

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2018-10-15 16:05:28 +05:30
parent 2a966f26af
commit 102eb998ac
No known key found for this signature in database
GPG Key ID: AC016A555657D0A3
2 changed files with 5 additions and 1 deletions

View File

@ -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",

View File

@ -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`