[minor] patch to delete the schools deprecated doctypes
This commit is contained in:
parent
d1552f97e4
commit
ff70f38eac
@ -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.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.fix_status_for_invoices_with_negative_outstanding
|
||||||
erpnext.patches.v8_0.make_payments_table_blank_for_non_pos_invoice
|
erpnext.patches.v8_0.make_payments_table_blank_for_non_pos_invoice
|
||||||
|
erpnext.patches.v8_0.delete_schools_depricated_doctypes
|
||||||
|
14
erpnext/patches/v8_0/delete_schools_depricated_doctypes.py
Normal file
14
erpnext/patches/v8_0/delete_schools_depricated_doctypes.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user