Refactor Expense Claim (#12883)

* patch for custom workflow

* deleted field approval_status

* replaced approval_status with workflow_state

* updated test cases

* validation to check expense approver

* check if workflow_state_name already exists

* fixes

* modified notifications.py

* removed field exp_approval and modified test cases
This commit is contained in:
Shreya Shah
2018-02-16 14:49:39 +05:30
committed by Nabin Hait
parent bd7c00c59e
commit 093e7e6e98
14 changed files with 88 additions and 210 deletions

View File

@@ -30,7 +30,7 @@ def get_notification_config():
},
"Payment Entry": {"docstatus": 0},
"Leave Application": {"docstatus": 0},
"Expense Claim": {"approval_status": "Draft"},
"Expense Claim": {"docstatus": 0},
"Job Applicant": {"status": "Open"},
"Delivery Note": {
"status": ("not in", ("Completed", "Closed")),