patch: Add HR & Payroll deprecation warning
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 4196997..aa85ea7 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -266,6 +266,7 @@
erpnext.patches.v13_0.non_profit_deprecation_warning
erpnext.patches.v13_0.enable_ksa_vat_docs #1
erpnext.patches.v13_0.show_india_localisation_deprecation_warning
+erpnext.patches.v13_0.show_hr_payroll_deprecation_warning
[post_model_sync]
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
@@ -305,4 +306,4 @@
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
erpnext.patches.v14_0.crm_ux_cleanup
erpnext.patches.v14_0.remove_india_localisation # 14-07-2022
-erpnext.patches.v14_0.delete_hr_payroll_doctypes
\ No newline at end of file
+erpnext.patches.v14_0.remove_hr_and_payroll_modules
\ No newline at end of file
diff --git a/erpnext/patches/v13_0/show_hr_payroll_deprecation_warning.py b/erpnext/patches/v13_0/show_hr_payroll_deprecation_warning.py
new file mode 100644
index 0000000..c9cb7ac
--- /dev/null
+++ b/erpnext/patches/v13_0/show_hr_payroll_deprecation_warning.py
@@ -0,0 +1,16 @@
+import click
+import frappe
+
+
+def execute():
+ if "hrms" in frappe.get_installed_apps():
+ return
+
+ click.secho(
+ "HR and Payroll modules have been moved to a separate app"
+ " and will be removed from ERPNext in Version 14."
+ " Please install the HRMS app when upgrading to Version 14"
+ " to continue using the HR and Payroll modules:\n"
+ "https://github.com/frappe/hrms",
+ fg="yellow",
+ )
diff --git a/erpnext/patches/v14_0/delete_hr_payroll_doctypes.py b/erpnext/patches/v14_0/remove_hr_and_payroll_modules.py
similarity index 100%
rename from erpnext/patches/v14_0/delete_hr_payroll_doctypes.py
rename to erpnext/patches/v14_0/remove_hr_and_payroll_modules.py