Merge pull request #7616 from neilLasrado/assessment-validations
Patch fix for Update Assessment Module Patch
This commit is contained in:
commit
ba96ce7dd5
@ -20,7 +20,8 @@ def execute():
|
|||||||
frappe.reload_doc("schools", "doctype", "evaluation_criteria")
|
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):
|
for stud_result in frappe.db.sql("select * from `tabAssessment Result` where parent= %s", assessment.name, as_dict=True):
|
||||||
if stud_result.result:
|
if stud_result.result:
|
||||||
assessment_result = frappe.new_doc("Assessment Result")
|
assessment_result = frappe.new_doc("Assessment Result")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user