2019-02-11 08:30:48 +00:00
|
|
|
from __future__ import unicode_literals
|
2019-02-12 03:07:53 +00:00
|
|
|
import frappe
|
2019-02-11 08:30:48 +00:00
|
|
|
from frappe import _
|
|
|
|
|
2019-02-12 03:07:53 +00:00
|
|
|
active_domains = frappe.get_active_domains()
|
|
|
|
|
2019-02-11 08:30:48 +00:00
|
|
|
def get_data():
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
"label": _("Accounting"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Item",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Customer",
|
|
|
|
"description": _("Customer database."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier",
|
|
|
|
"description": _("Supplier database."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Company",
|
|
|
|
"description": _("Company (not Customer or Supplier) master."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Account",
|
|
|
|
"icon": "fa fa-sitemap",
|
|
|
|
"label": _("Chart of Accounts"),
|
|
|
|
"route": "#Tree/Account",
|
|
|
|
"description": _("Tree of financial accounts."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Opening Invoice Creation Tool",
|
2019-02-12 03:07:53 +00:00
|
|
|
"description": _("Create Opening Sales and Purchase Invoices"),
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-02-12 03:07:53 +00:00
|
|
|
"label": _("Data Import and Settings"),
|
2019-02-11 08:30:48 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Data Import",
|
|
|
|
"label": _("Import Data"),
|
|
|
|
"icon": "octicon octicon-cloud-upload",
|
|
|
|
"description": _("Import Data from CSV / Excel files."),
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Letter Head",
|
|
|
|
"description": _("Letter Heads for print templates."),
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Email Account",
|
|
|
|
"description": _("Add / Manage Email Accounts."),
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
2019-02-12 03:07:53 +00:00
|
|
|
|
2019-02-11 08:30:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Stock"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Warehouse",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Brand",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "UOM",
|
|
|
|
"label": _("Unit of Measure") + " (UOM)",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Stock Reconciliation",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("CRM"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Lead",
|
|
|
|
"description": _("Database of potential customers."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"label": _("Customer Group"),
|
|
|
|
"name": "Customer Group",
|
|
|
|
"icon": "fa fa-sitemap",
|
|
|
|
"link": "Tree/Customer Group",
|
|
|
|
"description": _("Manage Customer Group Tree."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"label": _("Territory"),
|
|
|
|
"name": "Territory",
|
|
|
|
"icon": "fa fa-sitemap",
|
|
|
|
"link": "Tree/Territory",
|
|
|
|
"description": _("Manage Territory Tree."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Human Resources"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Employee",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Employee Attendance Tool",
|
|
|
|
"hide_count": True,
|
|
|
|
"onboard": 1,
|
|
|
|
"dependencies": ["Employee"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Salary Structure",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Education"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"condition": "Education" in active_domains,
|
2019-02-11 08:30:48 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Student",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 03:07:53 +00:00
|
|
|
"name": "Course",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 07:38:21 +00:00
|
|
|
"name": "Instructor",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Room",
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Healthcare"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"condition": "Healthcare" in active_domains,
|
2019-02-11 08:30:48 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 07:38:21 +00:00
|
|
|
"name": "Patient",
|
|
|
|
"label": _("Patient"),
|
2019-02-11 08:30:48 +00:00
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 07:38:21 +00:00
|
|
|
"name": "Physician",
|
|
|
|
"label": _("Physician"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"onboard": 1,
|
2019-02-11 08:30:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-12 07:38:21 +00:00
|
|
|
"name": "Diagnosis",
|
|
|
|
"label": _("Diagnosis"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"onboard": 1,
|
2019-02-11 08:30:48 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Agriculture"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"condition": "Agriculture" in active_domains,
|
2019-02-11 08:30:48 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Crop",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Crop Cycle",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Location",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Fertilizer",
|
|
|
|
"onboard": 1,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Non Profit"),
|
2019-02-12 03:07:53 +00:00
|
|
|
"condition": "Non Profit" in active_domains,
|
2019-02-11 08:30:48 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Member",
|
|
|
|
"description": _("Member information."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Volunteer",
|
|
|
|
"description": _("Volunteer information."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Chapter",
|
|
|
|
"description": _("Chapter information."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Donor",
|
|
|
|
"description": _("Donor information."),
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|