Skip to content

Instantly share code, notes, and snippets.

@MaxMorais
Created March 31, 2015 12:48
Show Gist options
  • Save MaxMorais/40b9c8367e0444b7695b to your computer and use it in GitHub Desktop.
Save MaxMorais/40b9c8367e0444b7695b to your computer and use it in GitHub Desktop.
Module config example
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Documents"),
"icon": "icon-star",
"items": [
{
"type": "doctype",
"name": "Organization",
"description": _("Organization records master.")
},
{
"type": "doctype",
"name": "Department",
"description": _("Organization unit (department) master.")
},
{
"type": "doctype",
"name": "Staff",
"description": _("Staff records."),
},
{
"type": "doctype",
"name": "Parcel",
"label": "Parcel",
},
{
"type": "doctype",
"name": "Letter",
"label": "Letter"
}
]
},
{
"label": _("Tools"),
"icon": "icon-wrench",
"items": [
{
"type": "doctype",
"name": "Parcel Pickup",
"label": "Pickup"
},
{
"type": "doctype",
"name": "Parcel Delivery",
"label": "Delivery"
},
{
"type": "doctype",
"name": "Parcel Return",
"label": "Return"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment