From 669e789bc31fc0d31f7332538611dc4fb154543a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 30 Jun 2014 17:15:52 +0530 Subject: [PATCH] Minor fix in authorization rule --- erpnext/setup/doctype/authorization_rule/authorization_rule.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/setup/doctype/authorization_rule/authorization_rule.py b/erpnext/setup/doctype/authorization_rule/authorization_rule.py index 58fb231a57..a5a75cfc8f 100644 --- a/erpnext/setup/doctype/authorization_rule/authorization_rule.py +++ b/erpnext/setup/doctype/authorization_rule/authorization_rule.py @@ -10,8 +10,6 @@ from frappe import _, msgprint from frappe.model.document import Document class AuthorizationRule(Document): - - def check_duplicate_entry(self): exists = frappe.db.sql("""select name, docstatus from `tabAuthorization Rule` where transaction = %s and based_on = %s and system_user = %s @@ -49,5 +47,4 @@ class AuthorizationRule(Document): def validate(self): self.check_duplicate_entry() self.validate_rule() - self.validate_master_name() if not self.value: self.value = 0.0