brotherton-erpnext/erpnext/config/setup.py

128 lines
2.9 KiB
Python
Raw Normal View History

from __future__ import unicode_literals
2014-02-14 10:17:51 +00:00
from frappe import _
2014-09-09 10:45:35 +00:00
from frappe.desk.moduleview import add_setup_section
2014-02-07 13:34:19 +00:00
2014-03-03 09:35:28 +00:00
def get_data():
2014-05-08 06:13:18 +00:00
data = [
{
"label": _("Settings"),
2016-12-07 05:38:48 +00:00
"icon": "fa fa-wrench",
2014-05-08 06:13:18 +00:00
"items": [
{
"type": "doctype",
"name": "Global Defaults",
"label": _("Global Settings"),
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
"hide_count": True
}
]
},
{
2014-12-30 12:39:40 +00:00
"label": _("Printing"),
2016-12-07 05:38:48 +00:00
"icon": "fa fa-print",
2014-05-08 06:13:18 +00:00
"items": [
{
"type": "doctype",
"name": "Letter Head",
"description": _("Letter Heads for print templates.")
},
{
"type": "doctype",
"name": "Print Heading",
"description": _("Titles for print templates e.g. Proforma Invoice.")
},
2014-06-05 07:47:45 +00:00
{
"type": "doctype",
"name": "Address Template",
"description": _("Country wise default Address Templates")
},
2014-05-08 06:13:18 +00:00
{
"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"),
"youtube_id": "fnBoRhBrwR4"
},
{
"type": "help",
"label": _("Workflow"),
"youtube_id": "yObJUg9FxFs"
},
]
},
2014-05-08 06:13:18 +00:00
{
"label": _("Customize"),
2016-12-07 05:38:48 +00:00
"icon": "fa fa-glass",
2014-05-08 06:13:18 +00:00
"items": [
{
"type": "doctype",
"name": "Authorization Rule",
"description": _("Create rules to restrict transactions based on values.")
},
{
"type": "doctype",
"name": "Notification Control",
"label": _("Email Notifications"),
"description": _("Automatically compose message on submission of transactions.")
}
]
},
{
"label": _("Email"),
2016-12-07 05:38:48 +00:00
"icon": "fa fa-envelope",
2014-05-08 06:13:18 +00:00
"items": [
2017-02-01 12:55:21 +00:00
{
"type": "doctype",
"name": "Feedback Trigger",
"label": _("Feedback Trigger"),
"description": _("Automatically triggers the feedback request based on conditions.")
},
2014-05-08 06:13:18 +00:00
{
"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 06:13:18 +00:00
]
}
2014-05-08 06:13:18 +00:00
]
2014-03-03 09:35:28 +00:00
for module, label, icon in (
2016-12-07 05:38:48 +00:00
("accounts", _("Accounts"), "fa fa-money"),
("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 06:13:18 +00:00
add_setup_section(data, "erpnext", module, label, icon)
2014-05-08 06:13:18 +00:00
return data