mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 01:36:55 +00:00
Update __init__.py
This commit is contained in:
@@ -7,5 +7,5 @@ from erpnext import get_region
|
||||
|
||||
def check_deletion_permission(doc, method):
|
||||
region = get_region()
|
||||
if region in ["Nepal", "France"]:
|
||||
frappe.throw(_("Deletion is not permitted for country {0}".format(region)))
|
||||
if region in ["Nepal", "France"] and doc.docstatus != 0:
|
||||
frappe.throw(_("Deletion is not permitted for country {0}".format(region)))
|
||||
|
||||
Reference in New Issue
Block a user