From 1bf440b03aa0a20b5b4f575a53dc7ad31e13d576 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 14 Jan 2016 18:14:50 +0530 Subject: [PATCH] [fix] module ordering --- erpnext/config/desktop.py | 56 +++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py index a8ce6a7a68c..863ad6dd0df 100644 --- a/erpnext/config/desktop.py +++ b/erpnext/config/desktop.py @@ -2,32 +2,50 @@ from __future__ import unicode_literals 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 @@ def get_data(): "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") } - } + ]