fix: Reload doc in Healthcare company patch (#21808)
This commit is contained in:
parent
e9864aa578
commit
91a9d3fbe5
@ -6,4 +6,5 @@ def execute():
|
||||
doctypes = ['Clinical Procedure', 'Inpatient Record', 'Lab Test', 'Patient Appointment', 'Patient Encounter', 'Vital Signs']
|
||||
for entry in doctypes:
|
||||
if frappe.db.exists('DocType', entry):
|
||||
frappe.reload_doc("Healthcare", "doctype", entry)
|
||||
frappe.db.sql("update `tab{dt}` set company = '{company}' where ifnull(company, '') = ''".format(dt=entry, company=company))
|
||||
|
Loading…
Reference in New Issue
Block a user