From 696fc0a48224edd836c91c435bd74b861a4e4e3e Mon Sep 17 00:00:00 2001 From: Chillar Anand Date: Fri, 21 Jan 2022 11:36:40 +0530 Subject: [PATCH] refactor: Added deprecation warning for hospitality domain (#29384) --- erpnext/patches.txt | 1 + .../patches/v13_0/hospitality_deprecation_warning.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 erpnext/patches/v13_0/hospitality_deprecation_warning.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 7110a7e308e..5d937490b96 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -342,3 +342,4 @@ erpnext.patches.v13_0.update_tax_category_for_rcm erpnext.patches.v13_0.convert_to_website_item_in_item_card_group_template erpnext.patches.v13_0.agriculture_deprecation_warning erpnext.patches.v13_0.update_maintenance_schedule_field_in_visit +erpnext.patches.v13_0.hospitality_deprecation_warning diff --git a/erpnext/patches/v13_0/hospitality_deprecation_warning.py b/erpnext/patches/v13_0/hospitality_deprecation_warning.py new file mode 100644 index 00000000000..9f9cf54f693 --- /dev/null +++ b/erpnext/patches/v13_0/hospitality_deprecation_warning.py @@ -0,0 +1,10 @@ +import click + + +def execute(): + + click.secho( + "Hospitality Domain is moved to a separate app and will be removed from ERPNext in version-14.\n" + "When upgrading to ERPNext version-14, please install the app to continue using the Agriculture domain: https://github.com/frappe/hospitality", + fg="yellow", + )