diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 15f50a791c7..9077ed662ff 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -371,3 +371,4 @@ erpnext.patches.v13_0.add_cost_center_in_loans erpnext.patches.v13_0.show_india_localisation_deprecation_warning erpnext.patches.v13_0.fix_number_and_frequency_for_monthly_depreciation erpnext.patches.v13_0.reset_corrupt_defaults +erpnext.patches.v13_0.show_hr_payroll_deprecation_warning 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 00000000000..c9cb7ac5e25 --- /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", + )