blob: 76801b9d8441f9678f8cbb2bda6effc62e49deda [file] [log] [blame]
theopen-institute38cbd712018-03-09 07:42:05 +07001# Copyright (c) 2018, Frappe Technologies and contributors
2# For license information, please see license.txt
3
4import frappe
5from frappe import _
6from erpnext import get_region
7
8def check_deletion_permission(doc, method):
9 region = get_region()
10 if region not in ["Nepal"]:
11 return
12 else:
Nabin Hait096c05c2018-03-09 13:11:00 +053013 frappe.throw(_("Deletion is not permitted for country {0}".format(region)))