Merge pull request #15689 from codingCoffee/pat

fix(patch): reload patient
This commit is contained in:
Ameya Shenoy 2018-10-15 17:49:42 +05:30 committed by GitHub
commit 4fa58359c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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`