diff --git a/hr/doctype/expense_claim/expense_claim.py b/hr/doctype/expense_claim/expense_claim.py index b5fddda14fa..9fdb2335bb9 100644 --- a/hr/doctype/expense_claim/expense_claim.py +++ b/hr/doctype/expense_claim/expense_claim.py @@ -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() diff --git a/hr/doctype/leave_application/leave_application.py b/hr/doctype/leave_application/leave_application.py index 8dbd532cd1c..47cdae80a50 100755 --- a/hr/doctype/leave_application/leave_application.py +++ b/hr/doctype/leave_application/leave_application.py @@ -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()