Error fixed in cust group
This commit is contained in:
parent
f94937b890
commit
74fcb69b13
@ -39,7 +39,5 @@ class DocType:
|
||||
|
||||
def validate(self):
|
||||
|
||||
r = sql("select name from `tabCustomer Group` where name = '%s' and docstatus = 2"%(self.doc.customer_group_name))
|
||||
if r:
|
||||
msgprint("%s record is trashed. To untrash please go to Setup & click on Trash."%(self.doc.customer_group_name))
|
||||
raise Exception
|
||||
if sql("select name from `tabCustomer Group` where name = %s and docstatus = 2", (self.doc.customer_group_name)):
|
||||
msgprint("%s record is trashed. To untrash please go to Setup & click on Trash."%(self.doc.customer_group_name), raise_exception = 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user