removed Self Approval Not Allowed validation

This commit is contained in:
Anand Doshi 2012-12-06 22:04:32 +05:30
parent 67327a3df1
commit a113d85461
2 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@ class DocType:
self.doclist = doclist
def validate(self):
if self.doc.exp_approver == self.doc.owner:
webnotes.msgprint("""Self Approval is not allowed.""", raise_exception=1)
# if self.doc.exp_approver == self.doc.owner:
# webnotes.msgprint("""Self Approval is not allowed.""", raise_exception=1)
self.validate_fiscal_year()
self.validate_exp_details()

View File

@ -91,8 +91,8 @@ class DocType:
raise Exception
def validate(self):
if self.doc.leave_approver == self.doc.owner:
webnotes.msgprint("""Self Approval is not allowed.""", raise_exception=1)
# if self.doc.leave_approver == self.doc.owner:
# webnotes.msgprint("""Self Approval is not allowed.""", raise_exception=1)
self.validate_to_date()
self.validate_balance_leaves()