Skip to content

Commit

Permalink
Merge pull request #37228 from FHenry/14_warning_depreciation_regiona…
Browse files Browse the repository at this point in the history
…l_france

refactor(region): Splitting of France Regional logic from ERPNext
  • Loading branch information
deepeshgarg007 authored Sep 25, 2023
2 parents 25f800d + c9ba777 commit ba45299
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ erpnext.patches.v13_0.show_hr_payroll_deprecation_warning
erpnext.patches.v13_0.reset_corrupt_defaults
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
erpnext.patches.v14_0.france_depreciation_warning

[post_model_sync]
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
Expand Down Expand Up @@ -333,7 +334,7 @@ erpnext.patches.v14_0.update_company_in_ldc
erpnext.patches.v14_0.set_packed_qty_in_draft_delivery_notes
erpnext.patches.v14_0.cleanup_workspaces
erpnext.patches.v14_0.enable_allow_existing_serial_no
erpnext.patches.v14_0.set_report_in_process_SOA
erpnext.patches.v14_0.set_report_in_process_SOA
erpnext.patches.v14_0.create_accounting_dimensions_for_closing_balance
erpnext.patches.v14_0.update_closing_balances #15-07-2023
execute:frappe.defaults.clear_default("fiscal_year")
Expand Down
12 changes: 12 additions & 0 deletions erpnext/patches/v14_0/france_depreciation_warning.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import click
import frappe


def execute():
if "erpnext_france" in frappe.get_installed_apps():
return
click.secho(
"Feature for region France will be remove in version-15 and moved to a separate app\n"
"Please install the app to continue using the regionnal France features: https://github.com/scopen-coop/erpnext_france.git",
fg="yellow",
)

0 comments on commit ba45299

Please sign in to comment.