# DocType, Address
[

	# These values are common in all dictionaries
	{
		'creation': '2012-07-02 19:57:47',
		'docstatus': 0,
		'modified': '2012-07-02 20:24:15',
		'modified_by': u'Administrator',
		'owner': u'Administrator'
	},

	# These values are common for all DocType
	{
		'_last_update': u'1319016431',
		'allow_trash': 1,
		'colour': u'White:FFF',
		'default_print_format': u'Standard',
		'doctype': 'DocType',
		'document_type': u'Master',
		'in_dialog': 1,
		'module': u'Utilities',
		'name': '__common__',
		'search_fields': u'customer, supplier, sales_partner, country, state',
		'section_style': u'Simple',
		'show_in_menu': 0,
		'version': 1
	},

	# These values are common for all DocField
	{
		'doctype': u'DocField',
		'name': '__common__',
		'parent': u'Address',
		'parentfield': u'fields',
		'parenttype': u'DocType'
	},

	# These values are common for all DocPerm
	{
		'doctype': u'DocPerm',
		'name': '__common__',
		'parent': u'Address',
		'parentfield': u'permissions',
		'parenttype': u'DocType',
		'read': 1
	},

	# DocType, Address
	{
		'doctype': 'DocType',
		'name': u'Address'
	},

	# DocPerm
	{
		'cancel': 1,
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'System Manager',
		'write': 1
	},

	# DocPerm
	{
		'cancel': 1,
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Sales Master Manager',
		'write': 1
	},

	# DocPerm
	{
		'cancel': 1,
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Purchase Master Manager',
		'write': 1
	},

	# DocPerm
	{
		'cancel': 0,
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Maintenance Manager',
		'write': 1
	},

	# DocPerm
	{
		'cancel': 0,
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Accounts Manager',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Sales Manager',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Purchase Manager',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Sales User',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Purchase User',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Maintenance User',
		'write': 1
	},

	# DocPerm
	{
		'create': 1,
		'doctype': u'DocPerm',
		'permlevel': 0,
		'role': u'Accounts User',
		'write': 1
	},

	# DocPerm
	{
		'cancel': 0,
		'create': 0,
		'doctype': u'DocPerm',
		'permlevel': 1,
		'role': u'All',
		'write': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'doctype': u'DocField',
		'fieldname': u'address_details',
		'fieldtype': u'Section Break',
		'label': u'Address Details',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'description': u'<em>e.g. Office, Billing, Shipping</em>',
		'doctype': u'DocField',
		'fieldname': u'address_type',
		'fieldtype': u'Data',
		'label': u'Address Type',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'colour': u'White:FFF',
		'doctype': u'DocField',
		'fieldname': u'address_line1',
		'fieldtype': u'Data',
		'label': u'Address Line1',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'address_line2',
		'fieldtype': u'Data',
		'label': u'Address Line2',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'doctype': u'DocField',
		'fieldname': u'city',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'City/Town',
		'permlevel': 0,
		'reqd': 1,
		'search_index': 1
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'pincode',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'Pincode',
		'permlevel': 0,
		'search_index': 1
	},

	# DocField
	{
		'colour': u'White:FFF',
		'doctype': u'DocField',
		'fieldname': u'country',
		'fieldtype': u'Select',
		'in_filter': 1,
		'label': u'Country',
		'options': u'link:Country',
		'permlevel': 0,
		'reqd': 1,
		'search_index': 1,
		'trigger': u'Client'
	},

	# DocField
	{
		'colour': u'White:FFF',
		'doctype': u'DocField',
		'fieldname': u'state',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'State',
		'options': u'Suggest',
		'permlevel': 0,
		'search_index': 0
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'column_break0',
		'fieldtype': u'Column Break',
		'permlevel': 0,
		'print_hide': 0,
		'width': u'50%'
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'phone',
		'fieldtype': u'Data',
		'label': u'Phone',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'email_id',
		'fieldtype': u'Data',
		'label': u'Email Id',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'fax',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'Fax',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'depends_on': u'eval:!doc.supplier && !doc.sales_partner',
		'doctype': u'DocField',
		'fieldname': u'customer',
		'fieldtype': u'Link',
		'label': u'Customer',
		'options': u'Customer',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'depends_on': u'eval:!doc.supplier && !doc.sales_partner',
		'doctype': u'DocField',
		'fieldname': u'customer_name',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'Customer Name',
		'permlevel': 1
	},

	# DocField
	{
		'colour': u'White:FFF',
		'depends_on': u'eval:!doc.customer && !doc.sales_partner',
		'doctype': u'DocField',
		'fieldname': u'supplier',
		'fieldtype': u'Link',
		'label': u'Supplier',
		'options': u'Supplier',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'depends_on': u'eval:!doc.customer && !doc.sales_partner',
		'doctype': u'DocField',
		'fieldname': u'supplier_name',
		'fieldtype': u'Data',
		'in_filter': 1,
		'label': u'Supplier Name',
		'permlevel': 1,
		'search_index': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'depends_on': u'eval:!doc.customer && !doc.supplier',
		'doctype': u'DocField',
		'fieldname': u'sales_partner',
		'fieldtype': u'Link',
		'label': u'Sales Partner',
		'options': u'Sales Partner',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'default': u'0',
		'description': u'Check to make primary address',
		'doctype': u'DocField',
		'fieldname': u'is_primary_address',
		'fieldtype': u'Check',
		'label': u'Is Primary Address',
		'permlevel': 0
	},

	# DocField
	{
		'colour': u'White:FFF',
		'default': u'0',
		'description': u'Check to make Shipping Address',
		'doctype': u'DocField',
		'fieldname': u'is_shipping_address',
		'fieldtype': u'Check',
		'label': u'Is Shipping Address',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': u'DocField',
		'fieldname': u'trash_reason',
		'fieldtype': u'Small Text',
		'label': u'Trash Reason',
		'permlevel': 0
	}
]