mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
refactor: Remove Regionalisation From France as now there is an App ERPNext France to manage it
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user