blob: fa84b1ce944a4d4adeb0a2fdcad797091392ce79 [file] [log] [blame]
Prateeksha Singh01a045a2019-02-11 14:00:48 +05301from __future__ import unicode_literals
Prateeksha Singh9adad292019-02-12 08:37:53 +05302import frappe
Prateeksha Singh01a045a2019-02-11 14:00:48 +05303from frappe import _
4
Prateeksha Singh9adad292019-02-12 08:37:53 +05305active_domains = frappe.get_active_domains()
6
Prateeksha Singh01a045a2019-02-11 14:00:48 +05307def get_data():
8 return [
9 {
10 "label": _("Accounting"),
11 "items": [
12 {
13 "type": "doctype",
14 "name": "Item",
15 "onboard": 1,
16 },
17 {
18 "type": "doctype",
19 "name": "Customer",
20 "description": _("Customer database."),
21 "onboard": 1,
22 },
23 {
24 "type": "doctype",
25 "name": "Supplier",
26 "description": _("Supplier database."),
27 "onboard": 1,
28 },
29 {
30 "type": "doctype",
31 "name": "Company",
32 "description": _("Company (not Customer or Supplier) master."),
33 "onboard": 1,
34 },
35 {
36 "type": "doctype",
37 "name": "Account",
38 "icon": "fa fa-sitemap",
39 "label": _("Chart of Accounts"),
40 "route": "#Tree/Account",
41 "description": _("Tree of financial accounts."),
42 "onboard": 1,
43 },
44 {
45 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053046 "name": "Opening Invoice Creation Tool",
Prateeksha Singh9adad292019-02-12 08:37:53 +053047 "description": _("Create Opening Sales and Purchase Invoices"),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053048 "onboard": 1,
49 },
50 ]
51 },
52 {
Prateeksha Singh9adad292019-02-12 08:37:53 +053053 "label": _("Data Import and Settings"),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053054 "items": [
55 {
56 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053057 "name": "Data Import",
58 "label": _("Import Data"),
59 "icon": "octicon octicon-cloud-upload",
60 "description": _("Import Data from CSV / Excel files."),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053061 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +053062 },
63 {
64 "type": "doctype",
deepeshgarg0079f951652019-05-31 10:11:46 +053065 "name": "Chart of Accounts Importer",
66 "labe": _("Chart Of Accounts Importer"),
67 "description": _("Import Chart Of Accounts from CSV / Excel files"),
68 "onboard": 1
69 },
70 {
71 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053072 "name": "Letter Head",
73 "description": _("Letter Heads for print templates."),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053074 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +053075 },
76 {
77 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053078 "name": "Email Account",
79 "description": _("Add / Manage Email Accounts."),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053080 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +053081 },
Prateeksha Singh9adad292019-02-12 08:37:53 +053082
Prateeksha Singh01a045a2019-02-11 14:00:48 +053083 ]
84 },
85 {
86 "label": _("Stock"),
87 "items": [
88 {
89 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053090 "name": "Warehouse",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053091 "onboard": 1,
92 },
93 {
94 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053095 "name": "Brand",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053096 "onboard": 1,
97 },
98 {
99 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +0530100 "name": "UOM",
101 "label": _("Unit of Measure") + " (UOM)",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530102 "onboard": 1,
103 },
104 {
105 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +0530106 "name": "Stock Reconciliation",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530107 "onboard": 1,
108 },
109 ]
110 },
111 {
112 "label": _("CRM"),
113 "items": [
114 {
115 "type": "doctype",
116 "name": "Lead",
117 "description": _("Database of potential customers."),
118 "onboard": 1,
119 },
120 {
121 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530122 "label": _("Customer Group"),
123 "name": "Customer Group",
124 "icon": "fa fa-sitemap",
125 "link": "Tree/Customer Group",
126 "description": _("Manage Customer Group Tree."),
127 "onboard": 1,
128 },
129 {
130 "type": "doctype",
131 "label": _("Territory"),
132 "name": "Territory",
133 "icon": "fa fa-sitemap",
134 "link": "Tree/Territory",
135 "description": _("Manage Territory Tree."),
136 "onboard": 1,
137 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530138 ]
139 },
140 {
141 "label": _("Human Resources"),
142 "items": [
143 {
144 "type": "doctype",
145 "name": "Employee",
146 "onboard": 1,
147 },
148 {
149 "type": "doctype",
150 "name": "Employee Attendance Tool",
151 "hide_count": True,
152 "onboard": 1,
153 "dependencies": ["Employee"]
154 },
155 {
156 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530157 "name": "Salary Structure",
158 "onboard": 1,
159 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530160 ]
161 },
162 {
163 "label": _("Education"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530164 "condition": "Education" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530165 "items": [
166 {
167 "type": "doctype",
168 "name": "Student",
169 "onboard": 1,
170 },
171 {
172 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +0530173 "name": "Course",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530174 "onboard": 1,
175 },
176 {
177 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530178 "name": "Instructor",
179 "onboard": 1,
180 },
181 {
182 "type": "doctype",
183 "name": "Room",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530184 "onboard": 1,
185 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530186 ]
187 },
188 {
189 "label": _("Healthcare"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530190 "condition": "Healthcare" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530191 "items": [
192 {
193 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530194 "name": "Patient",
195 "label": _("Patient"),
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530196 "onboard": 1,
197 },
198 {
199 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530200 "name": "Physician",
201 "label": _("Physician"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530202 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530203 },
204 {
205 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530206 "name": "Diagnosis",
207 "label": _("Diagnosis"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530208 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530209 }
210 ]
211 },
212 {
213 "label": _("Agriculture"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530214 "condition": "Agriculture" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530215 "items": [
216 {
217 "type": "doctype",
218 "name": "Crop",
219 "onboard": 1,
220 },
221 {
222 "type": "doctype",
223 "name": "Crop Cycle",
224 "onboard": 1,
225 },
226 {
227 "type": "doctype",
228 "name": "Location",
229 "onboard": 1,
230 },
231 {
232 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530233 "name": "Fertilizer",
234 "onboard": 1,
235 }
236 ]
237 },
238 {
239 "label": _("Non Profit"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530240 "condition": "Non Profit" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530241 "items": [
242 {
243 "type": "doctype",
244 "name": "Member",
245 "description": _("Member information."),
246 "onboard": 1,
247 },
248 {
249 "type": "doctype",
250 "name": "Volunteer",
251 "description": _("Volunteer information."),
252 "onboard": 1,
253 },
254 {
255 "type": "doctype",
256 "name": "Chapter",
257 "description": _("Chapter information."),
258 "onboard": 1,
259 },
260 {
261 "type": "doctype",
262 "name": "Donor",
263 "description": _("Donor information."),
264 "onboard": 1,
265 },
266 ]
267 }
268 ]