blob: 878b2f2a0c6455a8f4eb58f6ce044eebad38eadd [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05302from frappe import _
Rushabh Mehtac0bb4532014-09-09 16:15:35 +05303from frappe.desk.moduleview import add_setup_section
Rushabh Mehtac4ec5342014-02-07 19:04:19 +05304
Anand Doshif5794f12014-03-03 15:05:28 +05305def get_data():
Anand Doshi08ef4672014-05-08 11:43:18 +05306 data = [
7 {
8 "label": _("Settings"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +05309 "icon": "fa fa-wrench",
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
13 "name": "Global Defaults",
14 "label": _("Global Settings"),
15 "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
16 "hide_count": True
17 }
18 ]
19 },
20 {
Rushabh Mehtaafbfdcf2014-12-30 18:09:40 +053021 "label": _("Printing"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053022 "icon": "fa fa-print",
Anand Doshi08ef4672014-05-08 11:43:18 +053023 "items": [
24 {
25 "type": "doctype",
26 "name": "Letter Head",
27 "description": _("Letter Heads for print templates.")
28 },
29 {
30 "type": "doctype",
31 "name": "Print Heading",
32 "description": _("Titles for print templates e.g. Proforma Invoice.")
33 },
34 {
35 "type": "doctype",
Rushabh Mehtac22e11d2014-06-05 13:17:45 +053036 "name": "Address Template",
37 "description": _("Country wise default Address Templates")
38 },
39 {
40 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053041 "name": "Terms and Conditions",
42 "description": _("Standard contract terms for Sales or Purchase.")
43 },
44 ]
45 },
46 {
Rushabh Mehta67712402015-05-25 18:30:53 +053047 "label": _("Help"),
48 "items": [
49 {
50 "type": "help",
51 "name": _("Data Import and Export"),
52 "youtube_id": "6wiriRKPhmg"
53 },
54 {
55 "type": "help",
56 "label": _("Setting up Email"),
57 "youtube_id": "YFYe0DrB95o"
58 },
59 {
60 "type": "help",
61 "label": _("Printing and Branding"),
62 "youtube_id": "cKZHcx1znMc"
63 },
64 {
65 "type": "help",
66 "label": _("Users and Permissions"),
67 "youtube_id": "fnBoRhBrwR4"
68 },
69 {
70 "type": "help",
71 "label": _("Workflow"),
72 "youtube_id": "yObJUg9FxFs"
73 },
74 ]
75 },
76 {
Anand Doshi08ef4672014-05-08 11:43:18 +053077 "label": _("Customize"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053078 "icon": "fa fa-glass",
Anand Doshi08ef4672014-05-08 11:43:18 +053079 "items": [
80 {
81 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053082 "name": "Authorization Rule",
83 "description": _("Create rules to restrict transactions based on values.")
84 },
85 {
86 "type": "doctype",
87 "name": "Notification Control",
88 "label": _("Email Notifications"),
89 "description": _("Automatically compose message on submission of transactions.")
90 }
91 ]
92 },
93 {
94 "label": _("Email"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053095 "icon": "fa fa-envelope",
Anand Doshi08ef4672014-05-08 11:43:18 +053096 "items": [
97 {
98 "type": "doctype",
mbauskar298acd32017-02-01 18:25:21 +053099 "name": "Feedback Trigger",
100 "label": _("Feedback Trigger"),
101 "description": _("Automatically triggers the feedback request based on conditions.")
102 },
103 {
104 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +0530105 "name": "Email Digest",
106 "description": _("Create and manage daily, weekly and monthly email digests.")
107 },
108 {
109 "type": "doctype",
Nabin Haite7546e22014-05-28 16:25:54 +0530110 "name": "SMS Settings",
111 "description": _("Setup SMS gateway settings")
112 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530113 ]
Rushabh Mehta7278c0a2015-07-03 12:21:50 +0530114 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530115 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530116
Anand Doshif5794f12014-03-03 15:05:28 +0530117 for module, label, icon in (
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530118 ("accounts", _("Accounts"), "fa fa-money"),
119 ("stock", _("Stock"), "fa fa-truck"),
120 ("selling", _("Selling"), "fa fa-tag"),
121 ("buying", _("Buying"), "fa fa-shopping-cart"),
122 ("hr", _("Human Resources"), "fa fa-group"),
123 ("support", _("Support"), "fa fa-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530124
Anand Doshi08ef4672014-05-08 11:43:18 +0530125 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530126
Anand Doshi08ef4672014-05-08 11:43:18 +0530127 return data