966f141f62
* renaming for the docs, demo data and patch * changes in the doctypes and reports * rename the config file * Few name changes in messages and license * rename the school settings to education settings * changes in the documentation * added the setup file for the fixtures * corrected the ui tests file path * fix the codacy * add the patch for renaming few doctypes and fields * changes in the patch
24 lines
943 B
Python
24 lines
943 B
Python
# 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")
|
|
frappe.rename_doc("DocType", "Examination Result", "Assessment Result")
|
|
|
|
# '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")
|
|
|
|
rename_field("Assessment", "exam_name", "assessment_name")
|
|
rename_field("Assessment", "exam_code", "assessment_code")
|
|
|
|
frappe.db.sql("delete from `tabPortal Menu Item` where route = '/examination'") |