diff --git a/erpnext/patches.txt b/erpnext/patches.txt index ac91f6038b7..853efa1cc30 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -396,3 +396,4 @@ erpnext.patches.v8_0.merge_student_batch_and_student_group erpnext.patches.v8_0.rename_total_margin_to_rate_with_margin # 11-05-2017 erpnext.patches.v8_0.fix_status_for_invoices_with_negative_outstanding erpnext.patches.v8_0.make_payments_table_blank_for_non_pos_invoice +erpnext.patches.v8_0.delete_schools_depricated_doctypes diff --git a/erpnext/patches/v8_0/delete_schools_depricated_doctypes.py b/erpnext/patches/v8_0/delete_schools_depricated_doctypes.py new file mode 100644 index 00000000000..09a78ed3ca6 --- /dev/null +++ b/erpnext/patches/v8_0/delete_schools_depricated_doctypes.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import frappe + +def execute(): + """ delete doctypes """ + + if frappe.db.exists("DocType", "Grading Structure"): + frappe.delete_doc("DocType", "Grading Structure", force=1) + + if frappe.db.exists("DocType", "Grade Interval"): + frappe.delete_doc("DocType", "Grade Interval", force=1) \ No newline at end of file