Fixed Student Guardian patch - reload issue
This commit is contained in:
parent
1830675481
commit
52891b55d2
@ -4,6 +4,7 @@ def execute():
|
|||||||
if frappe.db.exists("DocType", "Guardian"):
|
if frappe.db.exists("DocType", "Guardian"):
|
||||||
frappe.reload_doc("schools", "doctype", "student")
|
frappe.reload_doc("schools", "doctype", "student")
|
||||||
frappe.reload_doc("schools", "doctype", "student_guardian")
|
frappe.reload_doc("schools", "doctype", "student_guardian")
|
||||||
|
frappe.reload_doc("schools", "doctype", "student_sibling")
|
||||||
guardian = frappe.get_all("Guardian", fields=["name", "student"])
|
guardian = frappe.get_all("Guardian", fields=["name", "student"])
|
||||||
for d in guardian:
|
for d in guardian:
|
||||||
if d.student:
|
if d.student:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user