[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-11-02 17:16:54", 
  "modified_by": "Administrator", 
  "modified": "2012-11-30 12:17:27"
 }, 
 {
  "is_submittable": 1, 
  "autoname": "LAP/.#####", 
  "name": "__common__", 
  "search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year", 
  "module": "HR", 
  "doctype": "DocType", 
  "document_type": "Transaction"
 }, 
 {
  "name": "__common__", 
  "parent": "Leave Application", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Leave Application", 
  "read": 1, 
  "doctype": "DocPerm", 
  "parenttype": "DocType", 
  "parentfield": "permissions"
 }, 
 {
  "name": "Leave Application", 
  "doctype": "DocType"
 }, 
 {
  "default": "Open", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Status", 
  "options": "Open\nApproved\nRejected", 
  "fieldname": "status", 
  "fieldtype": "Select", 
  "permlevel": 3
 }, 
 {
  "search_index": 1, 
  "doctype": "DocField", 
  "label": "Leave Type", 
  "options": "link:Leave Type", 
  "fieldname": "leave_type", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "search_index": 1, 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "From Date", 
  "trigger": "Client", 
  "fieldname": "from_date", 
  "fieldtype": "Date", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "search_index": 1, 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "To Date", 
  "trigger": "Client", 
  "fieldname": "to_date", 
  "fieldtype": "Date", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Half Day", 
  "trigger": "Client", 
  "fieldname": "half_day", 
  "fieldtype": "Check", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break1", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "Leave Balance", 
  "fieldname": "leave_balance", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Total Leave Days", 
  "fieldname": "total_leave_days", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "search_index": 1, 
  "doctype": "DocField", 
  "label": "Employee", 
  "options": "Employee", 
  "fieldname": "employee", 
  "fieldtype": "Link", 
  "reqd": 1, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "search_index": 0, 
  "doctype": "DocField", 
  "label": "Employee Name", 
  "fieldname": "employee_name", 
  "fieldtype": "Data", 
  "permlevel": 1, 
  "in_filter": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "sb10", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "Reason", 
  "width": "300px", 
  "fieldname": "description", 
  "fieldtype": "Text Editor", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "HR Details", 
  "fieldname": "sb12", 
  "fieldtype": "Section Break", 
  "permlevel": 2
 }, 
 {
  "default": "Today", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Posting Date", 
  "no_copy": 1, 
  "fieldname": "posting_date", 
  "fieldtype": "Date", 
  "reqd": 1, 
  "permlevel": 2
 }, 
 {
  "search_index": 0, 
  "doctype": "DocField", 
  "label": "Fiscal Year", 
  "options": "link:Fiscal Year", 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "permlevel": 2, 
  "in_filter": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Letter Head", 
  "options": "Letter Head", 
  "fieldname": "letter_head", 
  "fieldtype": "Link", 
  "permlevel": 2
 }, 
 {
  "doctype": "DocField", 
  "label": "Amended From", 
  "fieldname": "amended_from", 
  "fieldtype": "Data", 
  "permlevel": 2
 }, 
 {
  "doctype": "DocField", 
  "label": "Amendment Date", 
  "fieldname": "amendment_date", 
  "fieldtype": "Date", 
  "permlevel": 2
 }, 
 {
  "create": 1, 
  "doctype": "DocPerm", 
  "write": 1, 
  "role": "Employee", 
  "permlevel": 0, 
  "match": "employee"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "All", 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "role": "HR User", 
  "cancel": 1, 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 1, 
  "role": "HR User", 
  "cancel": 0, 
  "permlevel": 2
 }, 
 {
  "doctype": "DocPerm", 
  "role": "All", 
  "permlevel": 3
 }, 
 {
  "doctype": "DocPerm", 
  "write": 1, 
  "role": "HR User", 
  "permlevel": 3
 }
]