2017-02-24 09:14:59 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
if not frappe.db.exists({"doctype": "Assessment Group","assessment_group_name": "All Assessment Groups"}):
|
2017-12-06 12:33:21 +00:00
|
|
|
frappe.reload_doc("education", "doctype", "assessment_group")
|
2017-02-24 09:14:59 +00:00
|
|
|
doc = frappe.new_doc("Assessment Group")
|
|
|
|
doc.assessment_group_name = "All Assessment Groups"
|
|
|
|
doc.is_group = 1
|
|
|
|
doc.flags.ignore_mandatory = True
|
|
|
|
doc.save()
|