Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 2 | import frappe |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 3 | from frappe import _ |
| 4 | |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 5 | active_domains = frappe.get_active_domains() |
| 6 | |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 7 | def 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 Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 46 | "name": "Opening Invoice Creation Tool", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 47 | "description": _("Create Opening Sales and Purchase Invoices"), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 48 | "onboard": 1, |
| 49 | }, |
| 50 | ] |
| 51 | }, |
| 52 | { |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 53 | "label": _("Data Import and Settings"), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 54 | "items": [ |
| 55 | { |
| 56 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 57 | "name": "Data Import", |
| 58 | "label": _("Import Data"), |
| 59 | "icon": "octicon octicon-cloud-upload", |
| 60 | "description": _("Import Data from CSV / Excel files."), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 61 | "onboard": 1, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 62 | }, |
| 63 | { |
| 64 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 65 | "name": "Letter Head", |
| 66 | "description": _("Letter Heads for print templates."), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 67 | "onboard": 1, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 68 | }, |
| 69 | { |
| 70 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 71 | "name": "Email Account", |
| 72 | "description": _("Add / Manage Email Accounts."), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 73 | "onboard": 1, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 74 | }, |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 75 | |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 76 | ] |
| 77 | }, |
| 78 | { |
| 79 | "label": _("Stock"), |
| 80 | "items": [ |
| 81 | { |
| 82 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 83 | "name": "Warehouse", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 84 | "onboard": 1, |
| 85 | }, |
| 86 | { |
| 87 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 88 | "name": "Brand", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 89 | "onboard": 1, |
| 90 | }, |
| 91 | { |
| 92 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 93 | "name": "UOM", |
| 94 | "label": _("Unit of Measure") + " (UOM)", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 95 | "onboard": 1, |
| 96 | }, |
| 97 | { |
| 98 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 99 | "name": "Stock Reconciliation", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 100 | "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 Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 115 | "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 Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 131 | ] |
| 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 Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 150 | "name": "Salary Structure", |
| 151 | "onboard": 1, |
| 152 | }, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 153 | ] |
| 154 | }, |
| 155 | { |
| 156 | "label": _("Education"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 157 | "condition": "Education" in active_domains, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 158 | "items": [ |
| 159 | { |
| 160 | "type": "doctype", |
| 161 | "name": "Student", |
| 162 | "onboard": 1, |
| 163 | }, |
| 164 | { |
| 165 | "type": "doctype", |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 166 | "name": "Course", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 167 | "onboard": 1, |
| 168 | }, |
| 169 | { |
| 170 | "type": "doctype", |
Prateeksha Singh | 4264681 | 2019-02-12 13:08:21 +0530 | [diff] [blame] | 171 | "name": "Instructor", |
| 172 | "onboard": 1, |
| 173 | }, |
| 174 | { |
| 175 | "type": "doctype", |
| 176 | "name": "Room", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 177 | "onboard": 1, |
| 178 | }, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 179 | ] |
| 180 | }, |
| 181 | { |
| 182 | "label": _("Healthcare"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 183 | "condition": "Healthcare" in active_domains, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 184 | "items": [ |
| 185 | { |
| 186 | "type": "doctype", |
Prateeksha Singh | 4264681 | 2019-02-12 13:08:21 +0530 | [diff] [blame] | 187 | "name": "Patient", |
| 188 | "label": _("Patient"), |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 189 | "onboard": 1, |
| 190 | }, |
| 191 | { |
| 192 | "type": "doctype", |
Prateeksha Singh | 4264681 | 2019-02-12 13:08:21 +0530 | [diff] [blame] | 193 | "name": "Physician", |
| 194 | "label": _("Physician"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 195 | "onboard": 1, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 196 | }, |
| 197 | { |
| 198 | "type": "doctype", |
Prateeksha Singh | 4264681 | 2019-02-12 13:08:21 +0530 | [diff] [blame] | 199 | "name": "Diagnosis", |
| 200 | "label": _("Diagnosis"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 201 | "onboard": 1, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 202 | } |
| 203 | ] |
| 204 | }, |
| 205 | { |
| 206 | "label": _("Agriculture"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 207 | "condition": "Agriculture" in active_domains, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 208 | "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 Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 226 | "name": "Fertilizer", |
| 227 | "onboard": 1, |
| 228 | } |
| 229 | ] |
| 230 | }, |
| 231 | { |
| 232 | "label": _("Non Profit"), |
Prateeksha Singh | 9adad29 | 2019-02-12 08:37:53 +0530 | [diff] [blame] | 233 | "condition": "Non Profit" in active_domains, |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 234 | "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 | ] |