From a64efb764b61b2c452da48f62a2a894464bccf97 Mon Sep 17 00:00:00 2001 From: Chillar Anand Date: Wed, 5 Jan 2022 11:56:32 +0530 Subject: [PATCH] refactor: Add deprecation warning for agriculture domain (#29149) --- erpnext/patches.txt | 1 + .../patches/v13_0/agriculture_deprecation_warning.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 erpnext/patches/v13_0/agriculture_deprecation_warning.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index c69ac090f65..67f41d0678b 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -339,3 +339,4 @@ erpnext.patches.v13_0.rename_ksa_qr_field erpnext.patches.v13_0.disable_ksa_print_format_for_others # 16-12-2021 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 diff --git a/erpnext/patches/v13_0/agriculture_deprecation_warning.py b/erpnext/patches/v13_0/agriculture_deprecation_warning.py new file mode 100644 index 00000000000..09ccfb3ea47 --- /dev/null +++ b/erpnext/patches/v13_0/agriculture_deprecation_warning.py @@ -0,0 +1,10 @@ +import click + + +def execute(): + + click.secho( + "Agriculture 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/agriculture", + fg="yellow", + )