[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-07-12 23:29:44", 
  "modified_by": "Administrator", 
  "modified": "2012-12-06 10:29:39"
 }, 
 {
  "in_create": 1, 
  "search_fields": "name,parent_territory,territory_manager", 
  "module": "Setup", 
  "document_type": "Master", 
  "description": "Classification of Customers by region", 
  "read_only": 1, 
  "autoname": "field:territory_name", 
  "name": "__common__", 
  "allow_rename": 1, 
  "doctype": "DocType", 
  "name_case": "Title Case"
 }, 
 {
  "name": "__common__", 
  "parent": "Territory", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Territory", 
  "amend": 0, 
  "submit": 0, 
  "doctype": "DocPerm", 
  "read": 1, 
  "parenttype": "DocType", 
  "parentfield": "permissions"
 }, 
 {
  "name": "Territory", 
  "doctype": "DocType"
 }, 
 {
  "oldfieldtype": "Small Text", 
  "doctype": "DocField", 
  "label": "Trash Reason", 
  "oldfieldname": "trash_reason", 
  "fieldname": "trash_reason", 
  "fieldtype": "Small Text", 
  "permlevel": 1
 }, 
 {
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Territory Name", 
  "oldfieldname": "territory_name", 
  "fieldname": "territory_name", 
  "fieldtype": "Data", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Parent Territory", 
  "oldfieldname": "parent_territory", 
  "trigger": "Client", 
  "fieldname": "parent_territory", 
  "fieldtype": "Link", 
  "reqd": 1, 
  "options": "Territory", 
  "permlevel": 0
 }, 
 {
  "description": "Only leaf nodes are allowed in transaction", 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Has Child Node", 
  "oldfieldname": "is_group", 
  "options": "\nYes\nNo", 
  "fieldname": "is_group", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "cb0", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "description": "For reference", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Territory Manager", 
  "oldfieldname": "territory_manager", 
  "permlevel": 0, 
  "fieldname": "territory_manager", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "in_filter": 1, 
  "options": "Sales Person"
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Int", 
  "doctype": "DocField", 
  "label": "lft", 
  "oldfieldname": "lft", 
  "fieldname": "lft", 
  "fieldtype": "Int", 
  "search_index": 1, 
  "hidden": 1, 
  "permlevel": 0, 
  "report_hide": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Int", 
  "doctype": "DocField", 
  "label": "rgt", 
  "oldfieldname": "rgt", 
  "fieldname": "rgt", 
  "fieldtype": "Int", 
  "search_index": 1, 
  "hidden": 1, 
  "permlevel": 0, 
  "report_hide": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "old_parent", 
  "oldfieldname": "old_parent", 
  "permlevel": 0, 
  "fieldname": "old_parent", 
  "fieldtype": "Link", 
  "hidden": 1, 
  "options": "Territory", 
  "report_hide": 1
 }, 
 {
  "description": "Set Item Group-wise budgets on this Territory. You can also include seasonality by setting the Distribution.", 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Territory Targets", 
  "fieldname": "target_details_section_break", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Table", 
  "doctype": "DocField", 
  "label": "Target Details", 
  "oldfieldname": "target_details", 
  "options": "Target Detail", 
  "fieldname": "target_details", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "description": "Select Budget Distribution to unevenly distribute targets across months.", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Target Distribution", 
  "oldfieldname": "distribution_id", 
  "options": "Budget Distribution", 
  "fieldname": "distribution_id", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "create": 0, 
  "doctype": "DocPerm", 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales Manager", 
  "permlevel": 1
 }, 
 {
  "create": 0, 
  "doctype": "DocPerm", 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales Manager", 
  "permlevel": 0
 }, 
 {
  "create": 0, 
  "doctype": "DocPerm", 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales Master Manager", 
  "permlevel": 1
 }, 
 {
  "create": 0, 
  "doctype": "DocPerm", 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales User", 
  "permlevel": 1
 }, 
 {
  "create": 0, 
  "doctype": "DocPerm", 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales User", 
  "permlevel": 0
 }, 
 {
  "create": 1, 
  "doctype": "DocPerm", 
  "write": 1, 
  "cancel": 1, 
  "role": "Sales Master Manager", 
  "permlevel": 0
 }
]