patch: Add HR & Payroll deprecation warning
This commit is contained in:
parent
eae39964e8
commit
8ce526115d
@ -266,6 +266,7 @@ erpnext.patches.v13_0.enable_provisional_accounting
|
||||
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.copy_is_subcontracted_value_to_is_old_subcontracting_flow
|
||||
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
|
||||
erpnext.patches.v14_0.remove_hr_and_payroll_modules
|
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",
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user