From d9f15e96b55b674de3e3aba96c1307fa49257760 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Sun, 10 Sep 2023 17:18:42 +0200 Subject: [PATCH] refactor(region): Splitting of France Regional logic from ERPNext --- erpnext/patches/v14_0/france_depreciation_warning.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 erpnext/patches/v14_0/france_depreciation_warning.py diff --git a/erpnext/patches/v14_0/france_depreciation_warning.py b/erpnext/patches/v14_0/france_depreciation_warning.py new file mode 100644 index 00000000000..8d8719f8623 --- /dev/null +++ b/erpnext/patches/v14_0/france_depreciation_warning.py @@ -0,0 +1,12 @@ +import click +import frappe + + +def execute(): + if "erpnext_france" in frappe.get_installed_apps(): + return + click.secho( + "Feature for Feature Region will be remove in version-15 and moved to a separate app\n" + "Please install the app to continue using the regionnal France features: git@github.com:scopen-coop/erpnext_france.git", + fg="yellow", + )