From 2ad07e1cc10beb73913521a408b4067db2eefdec Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 25 Sep 2013 11:42:42 +0530 Subject: [PATCH] [minor] [fix] approval status of expense claim to be editable only after first save --- hr/doctype/expense_claim/expense_claim.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hr/doctype/expense_claim/expense_claim.txt b/hr/doctype/expense_claim/expense_claim.txt index 2b1882fc5b..45ff19b377 100644 --- a/hr/doctype/expense_claim/expense_claim.txt +++ b/hr/doctype/expense_claim/expense_claim.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-10 16:34:14", "docstatus": 0, - "modified": "2013-07-05 14:36:59", + "modified": "2013-09-25 11:36:11", "modified_by": "Administrator", "owner": "harshada@webnotestech.com" }, @@ -41,6 +41,7 @@ }, { "default": "Draft", + "depends_on": "eval:!doc.__islocal", "doctype": "DocField", "fieldname": "approval_status", "fieldtype": "Select", @@ -50,7 +51,7 @@ "no_copy": 1, "oldfieldname": "approval_status", "oldfieldtype": "Select", - "options": "\nDraft\nApproved\nRejected", + "options": "Draft\nApproved\nRejected", "search_index": 1 }, {