feat(explore_page): rearrange links
diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py
index 14b0646..7461a63 100644
--- a/erpnext/config/accounts.py
+++ b/erpnext/config/accounts.py
@@ -497,6 +497,7 @@
]
}
]
+
gst = {
"label": _("Goods and Services Tax (GST India)"),
"items": [
@@ -540,6 +541,8 @@
},
]
}
+
+
retail = {
"label": _("Retail Operations"),
"items": [
@@ -579,12 +582,18 @@
}
]
}
+
+
subscriptions = {
"label": _("Subscription Management"),
"icon": "fa fa-microchip ",
"items": [
{
"type": "doctype",
+ "name": "Subscriber",
+ },
+ {
+ "type": "doctype",
"name": "Subscription Plan",
},
{
@@ -597,6 +606,8 @@
}
]
}
+
+
countries = frappe.get_all("Company", fields="country")
countries = [country["country"] for country in countries]
if "India" in countries:
diff --git a/erpnext/config/crm.py b/erpnext/config/crm.py
index 5ac46bd..1f0cdf6 100644
--- a/erpnext/config/crm.py
+++ b/erpnext/config/crm.py
@@ -27,6 +27,86 @@
"name": "Contact",
"description": _("All Contacts."),
},
+ {
+ "type": "doctype",
+ "name": "Communication",
+ "description": _("Record of all communications of type email, phone, chat, visit, etc."),
+ },
+ {
+ "type": "doctype",
+ "name": "Lead Source",
+ "description": _("Track Leads by Lead Source.")
+ },
+ ]
+ },
+ {
+ "label": _("Support"),
+ "items": [
+ {
+ "type": "doctype",
+ "name": "Issue",
+ "description": _("Support queries from customers."),
+ },
+ {
+ "type": "doctype",
+ "name": "Communication",
+ "description": _("Communication log."),
+ },
+ {
+ "type": "doctype",
+ "name": "Warranty Claim",
+ "description": _("Warranty Claim against Serial No."),
+ },
+ {
+ "type": "doctype",
+ "name": "Serial No",
+ "description": _("Single unit of an Item."),
+ },
+ {
+ "type": "page",
+ "name": "support-analytics",
+ "label": _("Support Analytics"),
+ "icon": "fa fa-bar-chart"
+ },
+ {
+ "type": "report",
+ "name": "Minutes to First Response for Issues",
+ "doctype": "Issue",
+ "is_query_report": True
+ },
+ {
+ "type": "report",
+ "name": "Support Hours",
+ "doctype": "Issue",
+ "is_query_report": True
+ },
+ ]
+ },
+ {
+ "label": _("Maintenance"),
+ "icon": "fa fa-star",
+ "items": [
+ {
+ "type": "doctype",
+ "name": "Maintenance Schedule",
+ "description": _("Plan for maintenance visits."),
+ },
+ {
+ "type": "doctype",
+ "name": "Maintenance Visit",
+ "description": _("Visit report for maintenance call."),
+ },
+ {
+ "type": "report",
+ "name": "Maintenance Schedules",
+ "is_query_report": True,
+ "doctype": "Maintenance Schedule"
+ },
+ {
+ "type": "doctype",
+ "name": "Warranty Claim",
+ "description": _("Warranty Claim against Serial No."),
+ },
]
},
{
@@ -84,17 +164,6 @@
]
},
{
- "label": _("Communication"),
- "icon": "fa fa-star",
- "items": [
- {
- "type": "doctype",
- "name": "Communication",
- "description": _("Record of all communications of type email, phone, chat, visit, etc."),
- },
- ]
- },
- {
"label": _("Setup"),
"icon": "fa fa-cog",
"items": [
@@ -129,17 +198,6 @@
},
{
"type": "doctype",
- "name": "Lead Source",
- "description": _("Track Leads by Lead Source.")
- },
- ]
- },
- {
- "label": _("SMS"),
- "icon": "fa fa-wrench",
- "items": [
- {
- "type": "doctype",
"name": "SMS Center",
"description":_("Send mass SMS to your contacts"),
},
@@ -155,19 +213,19 @@
}
]
},
- {
- "label": _("Help"),
- "items": [
- {
- "type": "help",
- "label": _("Lead to Quotation"),
- "youtube_id": "TxYX4r4JAKA"
- },
- {
- "type": "help",
- "label": _("Newsletters"),
- "youtube_id": "muLKsCrrDRo"
- },
- ]
- },
+ # {
+ # "label": _("Help"),
+ # "items": [
+ # {
+ # "type": "help",
+ # "label": _("Lead to Quotation"),
+ # "youtube_id": "TxYX4r4JAKA"
+ # },
+ # {
+ # "type": "help",
+ # "label": _("Newsletters"),
+ # "youtube_id": "muLKsCrrDRo"
+ # },
+ # ]
+ # },
]
diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py
index 762f48a..4e88d30 100644
--- a/erpnext/config/desktop.py
+++ b/erpnext/config/desktop.py
@@ -69,57 +69,6 @@
# old
{
- "label": _("Accounting"),
- "module_name": "Accounts",
- "color": "#3498db",
- "icon": "octicon octicon-repo",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "Stock",
- "color": "#f39c12",
- "icon": "octicon octicon-package",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "CRM",
- "color": "#EF4DB6",
- "icon": "octicon octicon-broadcast",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "Selling",
- "color": "#1abc9c",
- "icon": "octicon octicon-tag",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "Buying",
- "color": "#c0392b",
- "icon": "octicon octicon-briefcase",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "HR",
- "color": "#2ecc71",
- "icon": "octicon octicon-organization",
- "label": _("Human Resources"),
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "Manufacturing",
- "color": "#7f8c8d",
- "icon": "octicon octicon-tools",
- "type": "module",
- "hidden": 1
- },
- {
"module_name": "POS",
"color": "#589494",
"icon": "octicon octicon-credit-card",
@@ -136,30 +85,6 @@
"label": _("Leaderboard")
},
{
- "module_name": "Support",
- "color": "#2c3e50",
- "icon": "octicon octicon-issue-opened",
- "type": "module",
- "hidden": 1
- },
- {
- "module_name": "Help",
- "color": "#FF888B",
- "icon": "octicon octicon-device-camera-video",
- "type": "module",
- "is_help": True,
- "label": _("Help"),
- "hidden": 1
- },
- {
- "module_name": "Maintenance",
- "color": "#FF888B",
- "icon": "octicon octicon-tools",
- "type": "module",
- "label": _("Maintenance"),
- "hidden": 1
- },
- {
"module_name": "Student",
"color": "#c0392b",
"icon": "octicon octicon-person",
@@ -259,22 +184,6 @@
"type": "list",
"hidden": 1
},
- {
- "module_name": "Education",
- "color": "#428B46",
- "icon": "octicon octicon-mortar-board",
- "type": "module",
- "label": _("Education"),
- "hidden": 1
- },
- {
- "module_name": "Healthcare",
- "color": "#FF888B",
- "icon": "fa fa-heartbeat",
- "type": "module",
- "label": _("Healthcare"),
- "hidden": 1
- },
{
"module_name": "Patient",
"color": "#6BE273",
@@ -374,32 +283,6 @@
"type": "list"
},
{
- "module_name": "Restaurant",
- "color": "#EA81E8",
- "icon": "🍔",
- "_doctype": "Restaurant",
- "type": "module",
- "link": "List/Restaurant",
- "label": _("Restaurant"),
- "hidden": 1
- },
- {
- "module_name": "Hotels",
- "color": "#EA81E8",
- "icon": "fa fa-bed",
- "type": "module",
- "label": _("Hotels"),
- "hidden": 1
- },
- {
- "module_name": "Agriculture",
- "color": "#8BC34A",
- "icon": "octicon octicon-globe",
- "type": "module",
- "label": _("Agriculture"),
- "hidden": 1
- },
- {
"module_name": "Crop",
"_doctype": "Crop",
"label": _("Crop"),
@@ -500,14 +383,6 @@
"hidden": 1
},
{
- "module_name": "Assets",
- "color": "#4286f4",
- "icon": "octicon octicon-database",
- "hidden": 1,
- "label": _("Assets"),
- "type": "module"
- },
- {
"module_name": "Grant Application",
"color": "#E9AB17",
"icon": "fa fa-gift",
@@ -558,13 +433,141 @@
"label": _("Chapter"),
"hidden": 1
},
+
+ # Modules
+ {
+ "module_name": "Accounting",
+ "color": "#3498db",
+ "icon": "octicon octicon-repo",
+ "type": "module",
+ "hidden": 1,
+ "description": "Accounts, Banking, Ledgers and Statements, with Billings and Subscriptions."
+ },
+ {
+ "module_name": "Selling",
+ "color": "#1abc9c",
+ "icon": "octicon octicon-tag",
+ "type": "module",
+ "hidden": 1,
+ "description": "All things Sales, Customer and Products."
+ },
+ {
+ "module_name": "Buying",
+ "color": "#c0392b",
+ "icon": "octicon octicon-briefcase",
+ "type": "module",
+ "hidden": 1,
+ "description": "Purchasing, Suppliers and Products."
+ },
+
+
+ {
+ "module_name": "Stock",
+ "color": "#f39c12",
+ "icon": "octicon octicon-package",
+ "type": "module",
+ "hidden": 1,
+ "description": "Track Stock Transactions, Reports, and Serialized Items and Batches."
+ },
+ {
+ "module_name": "Assets",
+ "color": "#4286f4",
+ "icon": "octicon octicon-database",
+ "hidden": 1,
+ "label": _("Assets"),
+ "type": "module",
+ "description": "Asset Maintainance and Tools."
+ },
+ {
+ "module_name": "Projects",
+ "color": "#8e44ad",
+ "icon": "octicon octicon-rocket",
+ "type": "module",
+ "hidden": 1,
+ "description": "Updates, Timesheets and Activities."
+ },
+
+
+ # Category: "Domains"
+ {
+ "module_name": "Manufacturing",
+ "color": "#7f8c8d",
+ "icon": "octicon octicon-tools",
+ "type": "module",
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Streamline your production with BOMS, Work Orders and Timesheets."
+ },
+ {
+ "module_name": "CRM",
+ "color": "#EF4DB6",
+ "icon": "octicon octicon-broadcast",
+ "type": "module",
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Everything in your sales pipeline, from Leads to Customers, to Support."
+ },
+ {
+ "module_name": "HR",
+ "color": "#2ecc71",
+ "icon": "octicon octicon-organization",
+ "label": _("Human Resources"),
+ "type": "module",
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Employee Lifecycle, Payroll, Shifts and Leaves."
+ },
+ {
+ "module_name": "Education",
+ "color": "#428B46",
+ "icon": "octicon octicon-mortar-board",
+ "type": "module",
+ "label": _("Education"),
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Manage Student Admissions, Fees, Subjects and Score Reports."
+ },
+ {
+ "module_name": "Healthcare",
+ "color": "#FF888B",
+ "icon": "fa fa-heartbeat",
+ "type": "module",
+ "label": _("Healthcare"),
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Patients appointments, procedures and tests, with diagnosis reports and drug prescriptions."
+ },
+ {
+ "module_name": "Agriculture",
+ "color": "#8BC34A",
+ "icon": "octicon octicon-globe",
+ "type": "module",
+ "label": _("Agriculture"),
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Crop Cycles, Land Areas and Soil and Plant Analysis."
+ },
+ {
+ "module_name": "Hotels",
+ "color": "#EA81E8",
+ "icon": "fa fa-bed",
+ "type": "module",
+ "label": _("Hotels"),
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Manage Hotel Rooms, Pricing, Reservation and Amenities."
+ },
+
+
{
"module_name": "Non Profit",
"color": "#DE2B37",
"icon": "octicon octicon-heart",
"type": "module",
"label": _("Non Profit"),
- "hidden": 1
+ "hidden": 1,
+ "category": "Domains",
+ "description": "Volunteers, Memberships, Grants and Chapters."
},
{
"module_name": "Quality Management",
@@ -572,5 +575,43 @@
"icon": "fa fa-check-square-o",
"type": "module",
"label": _("Quality")
+ "hidden": 1,
+ },
+
+
+ {
+ "module_name": "Learn",
+ "color": "#FF888B",
+ "icon": "octicon octicon-device-camera-video",
+ "type": "module",
+ "is_help": True,
+ "label": _("Learn"),
+ "category": "Administration",
+ "description": "Explore Help Articles and Videos."
+ },
+ {
+ "module_name": 'Marketplace',
+ "label": _('Marketplace'),
+ "icon": "octicon octicon-heart",
+ "type": 'link',
+ "link": 'marketplace/home',
+ "color": '#FF4136',
+ 'standard': 1,
+ "category": "Places",
+ "description": "Publish items to the other ERPNext users and start a conversation."
+ },
+
+
+ {
+ "module_name": "Restaurant",
+ "color": "#EA81E8",
+ "icon": "🍔",
+ "_doctype": "Restaurant",
+ "type": "module",
+ "link": "List/Restaurant",
+ "label": _("Restaurant"),
+ "category": "Domains",
+ "hidden": 1,
+ "description": "Menu, orders and table reservations."
}
- ]
\ No newline at end of file
+ ]
diff --git a/erpnext/config/hr.py b/erpnext/config/hr.py
index dca3044..647d152 100644
--- a/erpnext/config/hr.py
+++ b/erpnext/config/hr.py
@@ -12,6 +12,36 @@
},
{
"type": "doctype",
+ "name": "Employee Transfer",
+ },
+ {
+ "type": "doctype",
+ "name": "Employee Promotion",
+ },
+ {
+ "type": "doctype",
+ "name": "Employee Separation",
+ },
+ {
+ "type": "doctype",
+ "name": "Employee Onboarding"
+ },
+ {
+ "type": "doctype",
+ "name": "Employee Separation Template",
+ },
+ {
+ "type": "doctype",
+ "name": "Employee Onboarding Template"
+ }
+ ]
+ },
+
+ {
+ "label": _("Attendance and Leaves"),
+ "items": [
+ {
+ "type": "doctype",
"name": "Employee Attendance Tool",
"hide_count": True
},
@@ -27,12 +57,7 @@
"type": "doctype",
"name": "Upload Attendance",
"hide_count": True
- }
- ]
- },
- {
- "label": _("Leaves and Holiday"),
- "items": [
+ },
{
"type": "doctype",
"name": "Leave Application",
@@ -114,11 +139,6 @@
"type": "doctype",
"name": "Retention Bonus",
},
- ]
- },
- {
- "label": _("Payroll Setup"),
- "items": [
{
"type": "doctype",
"name": "Payroll Period",
@@ -131,21 +151,34 @@
"type": "doctype",
"name": "Salary Structure",
},
- {
- "type": "doctype",
- "name": "Employee Tax Exemption Category",
- },
- {
- "type": "doctype",
- "name": "Employee Tax Exemption Sub Category"
- }
+ # {
+ # "type": "doctype",
+ # "name": "Employee Tax Exemption Category",
+ # },
+ # {
+ # "type": "doctype",
+ # "name": "Employee Tax Exemption Sub Category"
+ # }
]
},
{
- "label": _("Travel and Expense Claim"),
+ "label": _("Appraisals, Expense Claims and Loans"),
"items": [
{
"type": "doctype",
+ "name": "Appraisal",
+ },
+ {
+ "type": "doctype",
+ "name": "Appraisal Template",
+ },
+ {
+ "type": "page",
+ "name": "team-updates",
+ "label": _("Team Updates")
+ },
+ {
+ "type": "doctype",
"name": "Employee Advance",
},
{
@@ -160,30 +193,6 @@
"type": "doctype",
"name": "Travel Request",
},
- ]
- },
- {
- "label": _("Appraisals"),
- "items": [
- {
- "type": "doctype",
- "name": "Appraisal",
- },
- {
- "type": "doctype",
- "name": "Appraisal Template",
- },
- {
- "type": "page",
- "name": "team-updates",
- "label": _("Team Updates")
- },
- ]
- },
- {
- "label": _("Loan Management"),
- "icon": "icon-list",
- "items": [
{
"type": "doctype",
"name": "Loan Type",
@@ -199,36 +208,7 @@
]
},
{
- "label": _("Employee Lifecycle"),
- "items": [
- {
- "type": "doctype",
- "name": "Employee Transfer",
- },
- {
- "type": "doctype",
- "name": "Employee Promotion",
- },
- {
- "type": "doctype",
- "name": "Employee Separation",
- },
- {
- "type": "doctype",
- "name": "Employee Onboarding"
- },
- {
- "type": "doctype",
- "name": "Employee Separation Template",
- },
- {
- "type": "doctype",
- "name": "Employee Onboarding Template"
- }
- ]
- },
- {
- "label": _("Recruitment"),
+ "label": _("Recruitment and Training"),
"items": [
{
"type": "doctype",
@@ -242,11 +222,6 @@
"type": "doctype",
"name": "Job Offer",
},
- ]
- },
- {
- "label": _("Training"),
- "items": [
{
"type": "doctype",
"name": "Training Program"
@@ -266,7 +241,60 @@
]
},
{
- "label": _("Shift Management"),
+ "label": _("Reports"),
+ "icon": "fa fa-list",
+ "items": [
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Employee Leave Balance",
+ "doctype": "Leave Application"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Employee Birthday",
+ "doctype": "Employee"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Employees working on a holiday",
+ "doctype": "Employee"
+ },
+ {
+ "type": "report",
+ "name": "Employee Information",
+ "doctype": "Employee"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Salary Register",
+ "doctype": "Salary Slip"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Monthly Attendance Sheet",
+ "doctype": "Attendance"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Vehicle Expenses",
+ "doctype": "Vehicle"
+ },
+ {
+ "type": "report",
+ "is_query_report": True,
+ "name": "Department Analytics",
+ "doctype": "Employee"
+ },
+ ]
+ },
+ {
+ "label": _("Shifts and Fleet Management"),
"items": [
{
"type": "doctype",
@@ -279,12 +307,7 @@
{
"type": "doctype",
"name": "Shift Assignment",
- }
- ]
- },
- {
- "label": _("Fleet Management"),
- "items": [
+ },
{
"type": "doctype",
"name": "Vehicle"
@@ -337,84 +360,25 @@
}
]
},
- {
- "label": _("Reports"),
- "icon": "fa fa-list",
- "items": [
- {
- "type": "report",
- "is_query_report": True,
- "name": "Employee Leave Balance",
- "doctype": "Leave Application"
- },
- {
- "type": "report",
- "is_query_report": True,
- "name": "Employee Birthday",
- "doctype": "Employee"
- },
- {
- "type": "report",
- "is_query_report": True,
- "name": "Employees working on a holiday",
- "doctype": "Employee"
- },
- {
- "type": "report",
- "name": "Employee Information",
- "doctype": "Employee"
- },
- {
- "type": "report",
- "is_query_report": True,
- "name": "Salary Register",
- "doctype": "Salary Slip"
- },
- {
- "type": "report",
- "is_query_report": True,
- "name": "Monthly Attendance Sheet",
- "doctype": "Attendance"
- },
- {
- "type": "report",
- "is_query_report": True,
- "name": "Vehicle Expenses",
- "doctype": "Vehicle"
- },
-
- ]
- },
- {
- "label": _("Help"),
- "icon": "fa fa-facetime-video",
- "items": [
- {
- "type": "help",
- "label": _("Setting up Employees"),
- "youtube_id": "USfIUdZlUhw"
- },
- {
- "type": "help",
- "label": _("Leave Management"),
- "youtube_id": "fc0p_AXebc8"
- },
- {
- "type": "help",
- "label": _("Expense Claims"),
- "youtube_id": "5SZHJF--ZFY"
- }
- ]
- },
- {
- "label": _("Analytics"),
- "items": [
- {
- "type": "report",
- "is_query_report": True,
- "name": "Department Analytics",
- "doctype": "Employee"
- },
- ]
- }
+ # {
+ # "label": _("Help"),
+ # "icon": "fa fa-facetime-video",
+ # "items": [
+ # {
+ # "type": "help",
+ # "label": _("Setting up Employees"),
+ # "youtube_id": "USfIUdZlUhw"
+ # },
+ # {
+ # "type": "help",
+ # "label": _("Leave Management"),
+ # "youtube_id": "fc0p_AXebc8"
+ # },
+ # {
+ # "type": "help",
+ # "label": _("Expense Claims"),
+ # "youtube_id": "5SZHJF--ZFY"
+ # }
+ # ]
+ # },
]
diff --git a/erpnext/config/maintenance.py b/erpnext/config/maintenance.py
deleted file mode 100644
index 97be47c..0000000
--- a/erpnext/config/maintenance.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from __future__ import unicode_literals
-from frappe import _
-
-def get_data():
- return [
- {
- "label": _("Maintenance"),
- "icon": "fa fa-star",
- "items": [
- {
- "type": "doctype",
- "name": "Maintenance Schedule",
- "description": _("Plan for maintenance visits."),
- },
- {
- "type": "doctype",
- "name": "Maintenance Visit",
- "description": _("Visit report for maintenance call."),
- },
- {
- "type": "report",
- "name": "Maintenance Schedules",
- "is_query_report": True,
- "doctype": "Maintenance Schedule"
- },
- {
- "type": "doctype",
- "name": "Warranty Claim",
- "description": _("Warranty Claim against Serial No."),
- },
- ]
- }
- ]
\ No newline at end of file
diff --git a/erpnext/config/support.py b/erpnext/config/support.py
deleted file mode 100644
index b85c430..0000000
--- a/erpnext/config/support.py
+++ /dev/null
@@ -1,60 +0,0 @@
-from __future__ import unicode_literals
-from frappe import _
-
-def get_data():
- return [
- {
- "label": _("Issues"),
- "items": [
- {
- "type": "doctype",
- "name": "Issue",
- "description": _("Support queries from customers."),
- },
- {
- "type": "doctype",
- "name": "Communication",
- "description": _("Communication log."),
- },
- ]
- },
- {
- "label": _("Warranty"),
- "items": [
- {
- "type": "doctype",
- "name": "Warranty Claim",
- "description": _("Warranty Claim against Serial No."),
- },
- {
- "type": "doctype",
- "name": "Serial No",
- "description": _("Single unit of an Item."),
- },
- ]
- },
- {
- "label": _("Reports"),
- "icon": "fa fa-list",
- "items": [
- {
- "type": "page",
- "name": "support-analytics",
- "label": _("Support Analytics"),
- "icon": "fa fa-bar-chart"
- },
- {
- "type": "report",
- "name": "Minutes to First Response for Issues",
- "doctype": "Issue",
- "is_query_report": True
- },
- {
- "type": "report",
- "name": "Support Hours",
- "doctype": "Issue",
- "is_query_report": True
- },
- ]
- },
- ]