Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
1e840c5a18
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user