mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
patch: do not run deletion patch if HRMS is already installed
This commit is contained in:
@@ -2,6 +2,9 @@ import frappe
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user