fix: conditionally run old patch for Setup Progress

This commit is contained in:
Rucha Mahabal 2019-11-26 15:22:05 +05:30
parent 7728ae6988
commit 195893db0e

View File

@ -5,6 +5,9 @@ from frappe import _
def execute():
"""Add setup progress actions"""
if not frappe.db.exists('DocType', 'Setup Progress') or not frappe.db.exists('DocType', 'Setup Progress Action'):
return
frappe.reload_doc("setup", "doctype", "setup_progress")
frappe.reload_doc("setup", "doctype", "setup_progress_action")