blob: 8db9ef2914f1703c7a899faa65d2d0e338855a2f [file] [log] [blame]
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05301from frappe import _
Anand Doshi0c4ef642014-03-04 11:15:08 +05302from frappe.widgets.moduleview import add_setup_section
Rushabh Mehtac4ec5342014-02-07 19:04:19 +05303
Anand Doshif5794f12014-03-03 15:05:28 +05304def get_data():
Anand Doshi08ef4672014-05-08 11:43:18 +05305 data = [
6 {
7 "label": _("Settings"),
8 "icon": "icon-wrench",
9 "items": [
10 {
11 "type": "doctype",
12 "name": "Global Defaults",
13 "label": _("Global Settings"),
14 "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
15 "hide_count": True
16 }
17 ]
18 },
19 {
20 "label": _("Printing and Branding"),
21 "icon": "icon-print",
22 "items": [
23 {
24 "type": "doctype",
25 "name": "Letter Head",
26 "description": _("Letter Heads for print templates.")
27 },
28 {
29 "type": "doctype",
30 "name": "Print Heading",
31 "description": _("Titles for print templates e.g. Proforma Invoice.")
32 },
33 {
34 "type": "doctype",
Rushabh Mehtac22e11d2014-06-05 13:17:45 +053035 "name": "Address Template",
36 "description": _("Country wise default Address Templates")
37 },
38 {
39 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053040 "name": "Terms and Conditions",
41 "description": _("Standard contract terms for Sales or Purchase.")
42 },
43 ]
44 },
45 {
46 "label": _("Customize"),
47 "icon": "icon-glass",
48 "items": [
49 {
50 "type": "doctype",
51 "name": "Features Setup",
52 "description": _("Show / Hide features like Serial Nos, POS etc.")
53 },
54 {
55 "type": "doctype",
56 "name": "Authorization Rule",
57 "description": _("Create rules to restrict transactions based on values.")
58 },
59 {
60 "type": "doctype",
61 "name": "Notification Control",
62 "label": _("Email Notifications"),
63 "description": _("Automatically compose message on submission of transactions.")
64 }
65 ]
66 },
67 {
68 "label": _("Email"),
69 "icon": "icon-envelope",
70 "items": [
71 {
72 "type": "doctype",
73 "name": "Email Digest",
74 "description": _("Create and manage daily, weekly and monthly email digests.")
75 },
76 {
77 "type": "doctype",
78 "name": "Support Email Settings",
79 "description": _("Setup incoming server for support email id. (e.g. support@example.com)")
80 },
81 {
82 "type": "doctype",
83 "name": "Sales Email Settings",
84 "description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
85 },
86 {
87 "type": "doctype",
88 "name": "Jobs Email Settings",
89 "description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
90 },
Nabin Haite7546e22014-05-28 16:25:54 +053091 {
92 "type": "doctype",
93 "name": "SMS Settings",
94 "description": _("Setup SMS gateway settings")
95 },
Anand Doshi08ef4672014-05-08 11:43:18 +053096 ]
97 },
98 {
99 "label": _("Masters"),
100 "icon": "icon-star",
101 "items": [
102 {
103 "type": "doctype",
104 "name": "Company",
105 "description": _("Company (not Customer or Supplier) master.")
106 },
107 {
108 "type": "doctype",
109 "name": "Item",
110 "description": _("Item master.")
111 },
112 {
113 "type": "doctype",
114 "name": "Customer",
115 "description": _("Customer master.")
116 },
117 {
118 "type": "doctype",
119 "name": "Supplier",
120 "description": _("Supplier master.")
121 },
122 {
123 "type": "doctype",
124 "name": "Contact",
125 "description": _("Contact master.")
126 },
127 {
128 "type": "doctype",
129 "name": "Address",
130 "description": _("Address master.")
131 },
132 ]
133 },
134 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530135
Anand Doshif5794f12014-03-03 15:05:28 +0530136 for module, label, icon in (
137 ("accounts", _("Accounts"), "icon-money"),
138 ("stock", _("Stock"), "icon-truck"),
139 ("selling", _("Selling"), "icon-tag"),
140 ("buying", _("Buying"), "icon-shopping-cart"),
141 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530142 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530143
Anand Doshi08ef4672014-05-08 11:43:18 +0530144 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530145
Anand Doshi08ef4672014-05-08 11:43:18 +0530146 return data