Skip to content

Commit

Permalink
fix: typos in DocTypes ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Jun 30, 2020
1 parent 4152057 commit 033bfd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frappe/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ def remove_app(app_name, dry_run=False, yes=False, no_backup=False, force=False)


linked_doctypes = frappe.get_all("DocField", filters={"fieldtype": "Link", "options": "Module Def"}, fields=['parent'])
ordered_doctypes = ["Desk Page", "Reports", "Pages", "Web Forms"]
ordered_doctypes = ["Desk Page", "Report", "Page", "Web Form"]
doctypes_with_linked_modules = ordered_doctypes + [doctype.parent for doctype in linked_doctypes if doctype.parent not in ordered_doctypes]

# remove desk page, reports, pages, web forms and chart sources
for doctype in doctypes_with_linked_modules:
for record in frappe.get_list(doctype, filters={"module": module_name}):
print("removing {0} {1}...".format(doctype, record.name))
Expand Down

0 comments on commit 033bfd2

Please sign in to comment.