mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
chore: Add HR & Payroll deprecation warning (#31720)
This commit is contained in:
@@ -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
|
||||
|
||||
16
erpnext/patches/v13_0/show_hr_payroll_deprecation_warning.py
Normal file
16
erpnext/patches/v13_0/show_hr_payroll_deprecation_warning.py
Normal file
@@ -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",
|
||||
)
|
||||
Reference in New Issue
Block a user