From fd1767d2ea5b84d5c139faa6f9dce569318f84b4 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 30 Jan 2017 17:50:05 +0530 Subject: [PATCH] Patch fix for Update Assessment Module Patch --- erpnext/patches/v7_2/update_assessment_modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v7_2/update_assessment_modules.py b/erpnext/patches/v7_2/update_assessment_modules.py index 550292e184..ac04294cb3 100644 --- a/erpnext/patches/v7_2/update_assessment_modules.py +++ b/erpnext/patches/v7_2/update_assessment_modules.py @@ -20,7 +20,8 @@ def execute(): frappe.reload_doc("schools", "doctype", "evaluation_criteria") - for assessment in frappe.get_all("Assessment Plan", fields=["name", "grading_scale"]): + for assessment in frappe.get_all("Assessment Plan", fields=["name", "grading_scale"], filters = [["docstatus", "!=", 2 ]]): + print assessment for stud_result in frappe.db.sql("select * from `tabAssessment Result` where parent= %s", assessment.name, as_dict=True): if stud_result.result: assessment_result = frappe.new_doc("Assessment Result")