patch: do not run deletion patch if HRMS is already installed
diff --git a/erpnext/patches/v14_0/delete_hr_payroll_doctypes.py b/erpnext/patches/v14_0/delete_hr_payroll_doctypes.py
index dc24364..e475e16 100644
--- a/erpnext/patches/v14_0/delete_hr_payroll_doctypes.py
+++ b/erpnext/patches/v14_0/delete_hr_payroll_doctypes.py
@@ -2,6 +2,9 @@
def execute():
+ if "hrms" in frappe.get_installed_apps():
+ return
+
frappe.delete_doc("Module Def", "HR", ignore_missing=True, force=True)
frappe.delete_doc("Module Def", "Payroll", ignore_missing=True, force=True)