From 43257c8cc3f632f3ea84bd4b63861d9b9a7a365f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 2 Apr 2019 08:59:15 +0530 Subject: [PATCH] fix(rename): Help Desk => Support --- erpnext/config/desktop.py | 4 +- erpnext/config/help_desk.py | 82 ------------------------------------- erpnext/config/support.py | 44 ++++++++++---------- 3 files changed, 25 insertions(+), 105 deletions(-) delete mode 100644 erpnext/config/help_desk.py diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py index 6dc95b242c7..8ce096499dc 100644 --- a/erpnext/config/desktop.py +++ b/erpnext/config/desktop.py @@ -81,9 +81,9 @@ def get_data(): "description": "Sales pipeline, leads, opportunities and customers." }, { - "module_name": "Help Desk", + "module_name": "Support", "category": "Modules", - "label": _("Help Desk"), + "label": _("Support"), "color": "#1abc9c", "icon": "fa fa-check-square-o", "type": "module", diff --git a/erpnext/config/help_desk.py b/erpnext/config/help_desk.py deleted file mode 100644 index c19dd423e63..00000000000 --- a/erpnext/config/help_desk.py +++ /dev/null @@ -1,82 +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."), - "onboard": 1, - }, - { - "type": "doctype", - "name": "Communication", - "description": _("Communication log."), - "onboard": 1, - }, - ] - }, - { - "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": _("Service Level Agreement"), - "items": [ - { - "type": "doctype", - "name": "Employee Group", - "description": _("Support Team."), - }, - { - "type": "doctype", - "name": "Service Level", - "description": _("Service Level."), - }, - { - "type": "doctype", - "name": "Service Level Agreement", - "description": _("Service Level Agreement."), - } - ] - }, - { - "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 - }, - ] - }, - ] \ No newline at end of file diff --git a/erpnext/config/support.py b/erpnext/config/support.py index 3980b4210ab..c19dd423e63 100644 --- a/erpnext/config/support.py +++ b/erpnext/config/support.py @@ -10,11 +10,13 @@ def get_data(): "type": "doctype", "name": "Issue", "description": _("Support queries from customers."), + "onboard": 1, }, { "type": "doctype", "name": "Communication", "description": _("Communication log."), + "onboard": 1, }, ] }, @@ -33,6 +35,26 @@ def get_data(): }, ] }, + { + "label": _("Service Level Agreement"), + "items": [ + { + "type": "doctype", + "name": "Employee Group", + "description": _("Support Team."), + }, + { + "type": "doctype", + "name": "Service Level", + "description": _("Service Level."), + }, + { + "type": "doctype", + "name": "Service Level Agreement", + "description": _("Service Level Agreement."), + } + ] + }, { "label": _("Reports"), "icon": "fa fa-list", @@ -57,24 +79,4 @@ def get_data(): }, ] }, - { - "label": _("Service Level Agreement"), - "items": [ - { - "type": "doctype", - "name": "Employee Group", - "description": _("Support Team."), - }, - { - "type": "doctype", - "name": "Service Level", - "description": _("Service Level."), - }, - { - "type": "doctype", - "name": "Service Level Agreement", - "description": _("Service Level Agreement."), - } - ] - }, - ] + ] \ No newline at end of file