[minor] deleted deprecated reprots and changed the lead.json modified time
This commit is contained in:
15
erpnext/patches/v8_1/delete_deprecated_reports.py
Normal file
15
erpnext/patches/v8_1/delete_deprecated_reports.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2017, Frappe and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
""" delete deprecated reports """
|
||||
|
||||
reports = ["Monthly Salary Register", "Customer Addresses And Contacts",
|
||||
"Supplier Addresses And Contacts"]
|
||||
|
||||
for report in reports:
|
||||
if frappe.db.exists("Report", report):
|
||||
frappe.delete_doc("Report", report, ignore_permissions=True)
|
||||
Reference in New Issue
Block a user