[fix] fix patch failed erpnext/patches/v7_2/make_all_assessment_group.py (#11864)
This commit is contained in:
parent
d4e439906c
commit
b930dfa74c
@ -6,6 +6,7 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if not frappe.db.exists({"doctype": "Assessment Group","assessment_group_name": "All Assessment Groups"}):
|
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 = frappe.new_doc("Assessment Group")
|
||||||
doc.assessment_group_name = "All Assessment Groups"
|
doc.assessment_group_name = "All Assessment Groups"
|
||||||
doc.is_group = 1
|
doc.is_group = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user