Skip to content

Commit

Permalink
refactor: Add deprecation warning for agriculture domain (#29149)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillarAnand committed Jan 5, 2022
1 parent 485fa47 commit a64efb7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions erpnext/patches/v13_0/agriculture_deprecation_warning.py
Original file line number Diff line number Diff line change
@@ -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",
)

0 comments on commit a64efb7

Please sign in to comment.