2016-08-01 18:15:33 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
from frappe.model.utils.rename_field import rename_field
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
if frappe.db.exists("DocType", "Examination"):
|
|
|
|
frappe.rename_doc("DocType", "Examination", "Assessment")
|
2016-08-16 13:01:09 +00:00
|
|
|
frappe.rename_doc("DocType", "Examination Result", "Assessment Result")
|
2017-11-23 09:52:10 +00:00
|
|
|
|
|
|
|
# 'Schools' module changed to the 'Education'
|
|
|
|
# frappe.reload_doc("schools", "doctype", "assessment")
|
|
|
|
# frappe.reload_doc("schools", "doctype", "assessment_result")
|
|
|
|
|
|
|
|
frappe.reload_doc("education", "doctype", "assessment")
|
|
|
|
frappe.reload_doc("education", "doctype", "assessment_result")
|
|
|
|
|
2016-08-01 18:15:33 +00:00
|
|
|
rename_field("Assessment", "exam_name", "assessment_name")
|
|
|
|
rename_field("Assessment", "exam_code", "assessment_code")
|
2016-08-09 11:37:59 +00:00
|
|
|
|
|
|
|
frappe.db.sql("delete from `tabPortal Menu Item` where route = '/examination'")
|