118 lines
2.6 KiB
Python
Raw Normal View History

from __future__ import unicode_literals
2014-02-14 15:47:51 +05:30
from frappe import _
2014-09-09 16:15:35 +05:30
from frappe.desk.moduleview import add_setup_section
2014-02-07 19:04:19 +05:30
2014-03-03 15:05:28 +05:30
def get_data():
2014-05-08 11:43:18 +05:30
data = [
{
"label": _("Settings"),
2016-12-07 11:08:48 +05:30
"icon": "fa fa-wrench",
2014-05-08 11:43:18 +05:30
"items": [
{
"type": "doctype",
"name": "Global Defaults",
"label": _("ERPNext Settings"),
2014-05-08 11:43:18 +05:30
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
2019-02-07 09:18:24 +05:30
"hide_count": True,
"settings": 1,
2014-05-08 11:43:18 +05:30
}
]
},
{
2014-12-30 18:09:40 +05:30
"label": _("Printing"),
2016-12-07 11:08:48 +05:30
"icon": "fa fa-print",
2014-05-08 11:43:18 +05:30
"items": [
{
"type": "doctype",
"name": "Letter Head",
2019-02-07 09:18:24 +05:30
"description": _("Letter Heads for print templates."),
"onboard": 1,
2014-05-08 11:43:18 +05:30
},
{
"type": "doctype",
"name": "Print Heading",
"description": _("Titles for print templates e.g. Proforma Invoice.")
},
2014-06-05 13:17:45 +05:30
{
"type": "doctype",
"name": "Address Template",
"description": _("Country wise default Address Templates")
},
2014-05-08 11:43:18 +05:30
{
"type": "doctype",
"name": "Terms and Conditions",
"description": _("Standard contract terms for Sales or Purchase.")
},
]
},
{
"label": _("Help"),
"items": [
{
"type": "help",
"name": _("Data Import and Export"),
"youtube_id": "6wiriRKPhmg"
},
{
"type": "help",
"label": _("Setting up Email"),
"youtube_id": "YFYe0DrB95o"
},
{
"type": "help",
"label": _("Printing and Branding"),
"youtube_id": "cKZHcx1znMc"
},
{
"type": "help",
"label": _("Users and Permissions"),
2018-11-12 16:46:12 +05:30
"youtube_id": "8Slw1hsTmUI"
},
{
"type": "help",
"label": _("Workflow"),
"youtube_id": "yObJUg9FxFs"
},
]
},
2014-05-08 11:43:18 +05:30
{
"label": _("Customize"),
2016-12-07 11:08:48 +05:30
"icon": "fa fa-glass",
2014-05-08 11:43:18 +05:30
"items": [
{
"type": "doctype",
"name": "Authorization Rule",
"description": _("Create rules to restrict transactions based on values.")
}
]
},
{
"label": _("Email"),
2016-12-07 11:08:48 +05:30
"icon": "fa fa-envelope",
2014-05-08 11:43:18 +05:30
"items": [
{
"type": "doctype",
"name": "Email Digest",
"description": _("Create and manage daily, weekly and monthly email digests.")
},
{
"type": "doctype",
"name": "SMS Settings",
"description": _("Setup SMS gateway settings")
},
2014-05-08 11:43:18 +05:30
]
}
2014-05-08 11:43:18 +05:30
]
2014-03-03 15:05:28 +05:30
for module, label, icon in (
2018-12-24 15:47:23 +05:30
("accounts", _("Accounting"), "fa fa-money"),
2016-12-07 11:08:48 +05:30
("stock", _("Stock"), "fa fa-truck"),
("selling", _("Selling"), "fa fa-tag"),
("buying", _("Buying"), "fa fa-shopping-cart"),
("hr", _("Human Resources"), "fa fa-group"),
("support", _("Support"), "fa fa-phone")):
2014-05-08 11:43:18 +05:30
add_setup_section(data, "erpnext", module, label, icon)
2014-05-08 11:43:18 +05:30
return data