mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix: Reload doc in Healthcare company patch (#21808)
This commit is contained in:
@@ -6,4 +6,5 @@ def execute():
|
|||||||
doctypes = ['Clinical Procedure', 'Inpatient Record', 'Lab Test', 'Patient Appointment', 'Patient Encounter', 'Vital Signs']
|
doctypes = ['Clinical Procedure', 'Inpatient Record', 'Lab Test', 'Patient Appointment', 'Patient Encounter', 'Vital Signs']
|
||||||
for entry in doctypes:
|
for entry in doctypes:
|
||||||
if frappe.db.exists('DocType', entry):
|
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))
|
frappe.db.sql("update `tab{dt}` set company = '{company}' where ifnull(company, '') = ''".format(dt=entry, company=company))
|
||||||
|
|||||||
Reference in New Issue
Block a user