Merge branch 'staging' into develop

This commit is contained in:
Sagar Vora
2019-01-22 15:56:39 +05:30
32 changed files with 2582 additions and 2041 deletions

View File

@@ -7,5 +7,5 @@ from erpnext import get_region
def check_deletion_permission(doc, method):
region = get_region(doc.company)
if region in ["Nepal", "France"]:
if region in ["Nepal", "France"] and doc.docstatus != 0:
frappe.throw(_("Deletion is not permitted for country {0}".format(region)))