[fix] fix patch failed erpnext/patches/v7_2/make_all_assessment_group.py (#11864)

This commit is contained in:
Vishal Dhayagude 2017-12-06 18:03:21 +05:30 committed by Nabin Hait
parent d4e439906c
commit b930dfa74c

View File

@ -6,6 +6,7 @@ import frappe
def execute():
if not frappe.db.exists({"doctype": "Assessment Group","assessment_group_name": "All Assessment Groups"}):
frappe.reload_doc("education", "doctype", "assessment_group")
doc = frappe.new_doc("Assessment Group")
doc.assessment_group_name = "All Assessment Groups"
doc.is_group = 1