brotherton-erpnext/erpnext/patches/v13_0/show_india_localisation_deprecation_warning.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
457 B
Python
Raw Normal View History

2022-06-26 13:00:54 +00:00
import click
import frappe
def execute():
2022-07-14 09:32:17 +00:00
if (
not frappe.db.exists("Company", {"country": "India"})
or "india_compliance" in frappe.get_installed_apps()
):
2022-06-26 13:00:54 +00:00
return
click.secho(
"India-specific regional features have been moved to a separate app"
" and will be removed from ERPNext in Version 14."
" Please install India Compliance after upgrading to Version 14:\n"
"https://github.com/resilient-tech/india-compliance",
fg="yellow",
)