From d471ad2c45e5236dbe32db45412d4aa821d8d29e Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 23 Jan 2017 14:59:19 +0530 Subject: [PATCH] Fix for update assessment modules patch --- erpnext/patches/v7_2/update_assessment_modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/patches/v7_2/update_assessment_modules.py b/erpnext/patches/v7_2/update_assessment_modules.py index 43c5764505..086e179e7e 100644 --- a/erpnext/patches/v7_2/update_assessment_modules.py +++ b/erpnext/patches/v7_2/update_assessment_modules.py @@ -16,6 +16,8 @@ def execute(): rename_field("Assessment Plan", "grading_structure", "grading_scale") frappe.reload_doc("schools", "doctype", "assessment_result") + frappe.reload_doc("schools", "doctype", "assessment_result_detail") + for assessment in frappe.get_all("Assessment Plan", fields=["name", "grading_scale"]): for stud_result in frappe.db.sql("select * from `tabAssessment Result` where parent= %s", assessment.name, as_dict=True): if stud_result.result: