2015-02-24 06:54:53 +00:00
|
|
|
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",
|
2019-02-11 08:30:48 +00:00
|
|
|
"label": _("ERPNext Settings"),
|
2014-05-08 06:13:18 +00:00
|
|
|
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
|
2019-02-07 03:48:24 +00:00
|
|
|
"hide_count": True,
|
|
|
|
"onboard": 1,
|
2014-05-08 06:13:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
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",
|
2019-02-07 03:48:24 +00:00
|
|
|
"description": _("Letter Heads for print templates."),
|
|
|
|
"onboard": 1,
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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.")
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2015-05-25 13:00:53 +00:00
|
|
|
{
|
|
|
|
"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 11:16:12 +00:00
|
|
|
"youtube_id": "8Slw1hsTmUI"
|
2015-05-25 13:00:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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.")
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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.")
|
|
|
|
},
|
2014-05-28 10:55:54 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "SMS Settings",
|
|
|
|
"description": _("Setup SMS gateway settings")
|
|
|
|
},
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
2015-07-03 06:51:50 +00:00
|
|
|
}
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
2014-04-17 13:18:59 +00:00
|
|
|
|
2014-03-03 09:35:28 +00:00
|
|
|
for module, label, icon in (
|
2018-12-24 10:17:23 +00:00
|
|
|
("accounts", _("Accounting"), "fa fa-money"),
|
2016-12-07 05:38:48 +00:00
|
|
|
("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-04-17 13:18:59 +00:00
|
|
|
|
2014-05-08 06:13:18 +00:00
|
|
|
add_setup_section(data, "erpnext", module, label, icon)
|
2014-03-04 05:45:08 +00:00
|
|
|
|
2014-05-08 06:13:18 +00:00
|
|
|
return data
|