blob: 19b71d2168137ef031292cd4b133d19c8de8ec8c [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",
Prateeksha Singh9adad292019-02-12 08:37:53 +053065 "name": "Letter Head",
66 "description": _("Letter Heads for print templates."),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053067 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +053068 },
69 {
70 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053071 "name": "Email Account",
72 "description": _("Add / Manage Email Accounts."),
Prateeksha Singh01a045a2019-02-11 14:00:48 +053073 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +053074 },
Prateeksha Singh9adad292019-02-12 08:37:53 +053075
Prateeksha Singh01a045a2019-02-11 14:00:48 +053076 ]
77 },
78 {
79 "label": _("Stock"),
80 "items": [
81 {
82 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053083 "name": "Warehouse",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053084 "onboard": 1,
85 },
86 {
87 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053088 "name": "Brand",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053089 "onboard": 1,
90 },
91 {
92 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053093 "name": "UOM",
94 "label": _("Unit of Measure") + " (UOM)",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053095 "onboard": 1,
96 },
97 {
98 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +053099 "name": "Stock Reconciliation",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530100 "onboard": 1,
101 },
102 ]
103 },
104 {
105 "label": _("CRM"),
106 "items": [
107 {
108 "type": "doctype",
109 "name": "Lead",
110 "description": _("Database of potential customers."),
111 "onboard": 1,
112 },
113 {
114 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530115 "label": _("Customer Group"),
116 "name": "Customer Group",
117 "icon": "fa fa-sitemap",
118 "link": "Tree/Customer Group",
119 "description": _("Manage Customer Group Tree."),
120 "onboard": 1,
121 },
122 {
123 "type": "doctype",
124 "label": _("Territory"),
125 "name": "Territory",
126 "icon": "fa fa-sitemap",
127 "link": "Tree/Territory",
128 "description": _("Manage Territory Tree."),
129 "onboard": 1,
130 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530131 ]
132 },
133 {
134 "label": _("Human Resources"),
135 "items": [
136 {
137 "type": "doctype",
138 "name": "Employee",
139 "onboard": 1,
140 },
141 {
142 "type": "doctype",
143 "name": "Employee Attendance Tool",
144 "hide_count": True,
145 "onboard": 1,
146 "dependencies": ["Employee"]
147 },
148 {
149 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530150 "name": "Salary Structure",
151 "onboard": 1,
152 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530153 ]
154 },
155 {
156 "label": _("Education"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530157 "condition": "Education" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530158 "items": [
159 {
160 "type": "doctype",
161 "name": "Student",
162 "onboard": 1,
163 },
164 {
165 "type": "doctype",
Prateeksha Singh9adad292019-02-12 08:37:53 +0530166 "name": "Course",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530167 "onboard": 1,
168 },
169 {
170 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530171 "name": "Instructor",
172 "onboard": 1,
173 },
174 {
175 "type": "doctype",
176 "name": "Room",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530177 "onboard": 1,
178 },
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530179 ]
180 },
181 {
182 "label": _("Healthcare"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530183 "condition": "Healthcare" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530184 "items": [
185 {
186 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530187 "name": "Patient",
188 "label": _("Patient"),
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530189 "onboard": 1,
190 },
191 {
192 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530193 "name": "Physician",
194 "label": _("Physician"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530195 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530196 },
197 {
198 "type": "doctype",
Prateeksha Singh42646812019-02-12 13:08:21 +0530199 "name": "Diagnosis",
200 "label": _("Diagnosis"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530201 "onboard": 1,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530202 }
203 ]
204 },
205 {
206 "label": _("Agriculture"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530207 "condition": "Agriculture" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530208 "items": [
209 {
210 "type": "doctype",
211 "name": "Crop",
212 "onboard": 1,
213 },
214 {
215 "type": "doctype",
216 "name": "Crop Cycle",
217 "onboard": 1,
218 },
219 {
220 "type": "doctype",
221 "name": "Location",
222 "onboard": 1,
223 },
224 {
225 "type": "doctype",
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530226 "name": "Fertilizer",
227 "onboard": 1,
228 }
229 ]
230 },
231 {
232 "label": _("Non Profit"),
Prateeksha Singh9adad292019-02-12 08:37:53 +0530233 "condition": "Non Profit" in active_domains,
Prateeksha Singh01a045a2019-02-11 14:00:48 +0530234 "items": [
235 {
236 "type": "doctype",
237 "name": "Member",
238 "description": _("Member information."),
239 "onboard": 1,
240 },
241 {
242 "type": "doctype",
243 "name": "Volunteer",
244 "description": _("Volunteer information."),
245 "onboard": 1,
246 },
247 {
248 "type": "doctype",
249 "name": "Chapter",
250 "description": _("Chapter information."),
251 "onboard": 1,
252 },
253 {
254 "type": "doctype",
255 "name": "Donor",
256 "description": _("Donor information."),
257 "onboard": 1,
258 },
259 ]
260 }
261 ]