[minor] deleted deprecated reprots and changed the lead.json modified time

This commit is contained in:
mbauskar
2017-06-22 16:18:12 +05:30
parent 78aac9edb6
commit 66e2a510b9
5 changed files with 20 additions and 4 deletions

View 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)