[fix] module ordering
diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py
index a8ce6a7..863ad6d 100644
--- a/erpnext/config/desktop.py
+++ b/erpnext/config/desktop.py
@@ -2,32 +2,50 @@
from frappe import _
def get_data():
- return {
- "Accounts": {
+ return [
+ {
+ "module_name": "Accounts",
"color": "#3498db",
"icon": "octicon octicon-repo",
"type": "module"
},
- "Buying": {
+ {
+ "module_name": "CRM",
+ "color": "#EF4DB6",
+ "icon": "octicon octicon-broadcast",
+ "type": "module"
+ },
+ {
+ "module_name": "Selling",
+ "color": "#1abc9c",
+ "icon": "icon-tag",
+ "icon": "octicon octicon-tag",
+ "type": "module"
+ },
+ {
+ "module_name": "Buying",
"color": "#c0392b",
"icon": "icon-shopping-cart",
"icon": "octicon octicon-briefcase",
"type": "module"
},
- "HR": {
+ {
+ "module_name": "HR",
"color": "#2ecc71",
"icon": "icon-group",
"icon": "octicon octicon-organization",
"label": _("Human Resources"),
"type": "module"
},
- "Manufacturing": {
+ {
+ "module_name": "Manufacturing",
"color": "#7f8c8d",
"icon": "icon-cogs",
"icon": "octicon octicon-tools",
"type": "module"
},
- "POS": {
+ {
+ "module_name": "POS",
"color": "#589494",
"icon": "icon-th",
"icon": "octicon octicon-credit-card",
@@ -35,41 +53,33 @@
"link": "pos",
"label": _("POS")
},
- "Projects": {
+ {
+ "module_name": "Projects",
"color": "#8e44ad",
"icon": "icon-puzzle-piece",
"icon": "octicon octicon-rocket",
"type": "module"
},
- "Selling": {
- "color": "#1abc9c",
- "icon": "icon-tag",
- "icon": "octicon octicon-tag",
- "type": "module"
- },
- "CRM": {
- "color": "#EF4DB6",
- "icon": "octicon octicon-broadcast",
- "type": "module"
- },
- "Stock": {
+ {
+ "module_name": "Stock",
"color": "#f39c12",
"icon": "icon-truck",
"icon": "octicon octicon-package",
"type": "module"
},
- "Support": {
+ {
+ "module_name": "Support",
"color": "#2c3e50",
"icon": "icon-phone",
"icon": "octicon octicon-issue-opened",
"type": "module"
},
- "Learn": {
+ {
+ "module_name": "Learn",
"color": "#FF888B",
- "force_show": True,
"icon": "octicon octicon-device-camera-video",
"type": "module",
"is_help": True,
"label": _("Learn")
}
- }
+ ]