brotherton-erpnext/erpnext/patches/v13_0/delete_old_purchase_reports.py
Marica c2aabb0fbf
fix: Buying Module fixes (#21965)
* fix: Buying Module fixes

* fix: Delete Report files as well

* fix: Add Purchase Order Analysis to Stock & Accounting
2020-05-27 20:56:39 +05:30

15 lines
473 B
Python

# Copyright (c) 2019, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
reports_to_delete = ["Requested Items To Be Ordered",
"Purchase Order Items To Be Received or Billed","Purchase Order Items To Be Received",
"Purchase Order Items To Be Billed"]
for report in reports_to_delete:
if frappe.db.exists("Report", report):
frappe.delete_doc("Report", report)