fix: remove validate for issue priority (#19522)

This commit is contained in:
Himanshu 2019-11-07 18:04:50 +05:30 committed by Nabin Hait
parent 28c6a0aeb1
commit bac50bc295

View File

@ -8,7 +8,4 @@ from frappe import _
from frappe.model.document import Document
class IssuePriority(Document):
def validate(self):
if frappe.db.exists("Issue Priority", {"name": self.name}):
frappe.throw(_("Issue Priority Already Exists"))
pass