15 lines
528 B
Python
15 lines
528 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.reload_doctype("Assessment")
|
|
rename_field("Assessment", "exam_name", "assessment_name")
|
|
rename_field("Assessment", "exam_code", "assessment_code")
|
|
|