expense_claim: approval status fix

This commit is contained in:
Rushabh Mehta 2012-12-31 13:24:24 +05:30
parent a9ff53c5a4
commit 0727169a5e

View File

@ -34,7 +34,7 @@ class DocType:
# webnotes.msgprint("""Self Approval is not allowed.""", raise_exception=1)
import utilities
utilities.validate_status(self.doc.status, ["Draft", "Approved", "Rejected"])
utilities.validate_status(self.doc.approval_status, ["Draft", "Approved", "Rejected"])
self.validate_fiscal_year()
self.validate_exp_details()