mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 00:37:15 +00:00
Merge pull request #6294 from neilLasrado/develop
Fixed Student Guardian patch - permission issue
This commit is contained in:
@@ -4,7 +4,7 @@ def execute():
|
||||
if frappe.db.exists("DocType", "Guardian"):
|
||||
frappe.reload_doc("schools", "doctype", "student")
|
||||
frappe.reload_doc("schools", "doctype", "student_guardian")
|
||||
guardian = frappe.get_list("Guardian", fields=["name", "student"])
|
||||
guardian = frappe.get_all("Guardian", fields=["name", "student"])
|
||||
for d in guardian:
|
||||
if d.student:
|
||||
student = frappe.get_doc("Student", d.student)
|
||||
|
||||
Reference in New Issue
Block a user