blob: a660942f8758028e0dcb45fc60c2acca88759163 [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"),
9 "icon": "icon-wrench",
10 "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"),
Anand Doshi08ef4672014-05-08 11:43:18 +053022 "icon": "icon-print",
23 "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"),
78 "icon": "icon-glass",
79 "items": [
80 {
81 "type": "doctype",
82 "name": "Features Setup",
83 "description": _("Show / Hide features like Serial Nos, POS etc.")
84 },
85 {
86 "type": "doctype",
87 "name": "Authorization Rule",
88 "description": _("Create rules to restrict transactions based on values.")
89 },
90 {
91 "type": "doctype",
92 "name": "Notification Control",
93 "label": _("Email Notifications"),
94 "description": _("Automatically compose message on submission of transactions.")
95 }
96 ]
97 },
98 {
99 "label": _("Email"),
100 "icon": "icon-envelope",
101 "items": [
102 {
103 "type": "doctype",
104 "name": "Email Digest",
105 "description": _("Create and manage daily, weekly and monthly email digests.")
106 },
107 {
108 "type": "doctype",
Nabin Haite7546e22014-05-28 16:25:54 +0530109 "name": "SMS Settings",
110 "description": _("Setup SMS gateway settings")
111 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530112 ]
Rushabh Mehta7278c0a2015-07-03 12:21:50 +0530113 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530114 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530115
Anand Doshif5794f12014-03-03 15:05:28 +0530116 for module, label, icon in (
117 ("accounts", _("Accounts"), "icon-money"),
118 ("stock", _("Stock"), "icon-truck"),
119 ("selling", _("Selling"), "icon-tag"),
120 ("buying", _("Buying"), "icon-shopping-cart"),
121 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530122 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530123
Anand Doshi08ef4672014-05-08 11:43:18 +0530124 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530125
Anand Doshi08ef4672014-05-08 11:43:18 +0530126 return data