Merge pull request #7597 from neilLasrado/guarding-name

Fixes to update student guardian name patch
This commit is contained in:
KanchanChauhan 2017-01-27 17:45:57 +05:30 committed by GitHub
commit ecc44e506b

View File

@ -2,6 +2,7 @@ import frappe
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("schools", "doctype", "student_guardian")
student_guardians = frappe.get_all("Student Guardian", fields=["guardian"])
for student_guardian in student_guardians:
guardian_name = frappe.db.get_value("Guardian", student_guardian.guardian, "guardian_name")