refactor: Remove Regionalisation From France as now there is an App ERPNext France to manage it

This commit is contained in:
Florian HENRY
2023-09-06 17:40:19 +02:00
parent c2f8f1d028
commit 662e9547da
8 changed files with 2 additions and 495 deletions

View File

@@ -10,7 +10,7 @@ from erpnext import get_region
def check_deletion_permission(doc, method):
region = get_region(doc.company)
if region in ["Nepal", "France"] and doc.docstatus != 0:
if region in ["Nepal"] and doc.docstatus != 0:
frappe.throw(_("Deletion is not permitted for country {0}").format(region))
@@ -20,7 +20,7 @@ def create_transaction_log(doc, method):
Called on submit of Sales Invoice and Payment Entry.
"""
region = get_region()
if region not in ["France", "Germany"]:
if region not in ["Germany"]:
return
data = str(doc.as_dict())