[fix] Remove reports on uninstallation of apps
This commit is contained in:
parent
269ef51c66
commit
09dd01c353
1 changed files with 6 additions and 0 deletions
|
|
@ -188,6 +188,12 @@ def remove_app(app_name, dry_run=False):
|
|||
|
||||
if not doctype.issingle:
|
||||
drop_doctypes.append(doctype.name)
|
||||
|
||||
# remove reports
|
||||
for report in frappe.get_list("Report", filters={"module": module_name}):
|
||||
print "removing {0}...".format(report.name)
|
||||
if not dry_run:
|
||||
frappe.delete_doc("Report", report.name)
|
||||
|
||||
print "removing Module {0}...".format(module_name)
|
||||
if not dry_run:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue