Himanshu | f3e5213 | 2019-03-19 16:47:56 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
| 2 | from frappe import _ |
| 3 | |
| 4 | def get_data(): |
| 5 | return [ |
| 6 | { |
| 7 | "label": _("Issues"), |
| 8 | "items": [ |
| 9 | { |
| 10 | "type": "doctype", |
| 11 | "name": "Issue", |
| 12 | "description": _("Support queries from customers."), |
| 13 | }, |
| 14 | { |
| 15 | "type": "doctype", |
| 16 | "name": "Communication", |
| 17 | "description": _("Communication log."), |
| 18 | }, |
| 19 | ] |
| 20 | }, |
| 21 | { |
| 22 | "label": _("Warranty"), |
| 23 | "items": [ |
| 24 | { |
| 25 | "type": "doctype", |
| 26 | "name": "Warranty Claim", |
| 27 | "description": _("Warranty Claim against Serial No."), |
| 28 | }, |
| 29 | { |
| 30 | "type": "doctype", |
| 31 | "name": "Serial No", |
| 32 | "description": _("Single unit of an Item."), |
| 33 | }, |
| 34 | ] |
| 35 | }, |
| 36 | { |
| 37 | "label": _("Reports"), |
| 38 | "icon": "fa fa-list", |
| 39 | "items": [ |
| 40 | { |
| 41 | "type": "page", |
| 42 | "name": "support-analytics", |
| 43 | "label": _("Support Analytics"), |
| 44 | "icon": "fa fa-bar-chart" |
| 45 | }, |
| 46 | { |
| 47 | "type": "report", |
| 48 | "name": "Minutes to First Response for Issues", |
| 49 | "doctype": "Issue", |
| 50 | "is_query_report": True |
| 51 | }, |
| 52 | { |
| 53 | "type": "report", |
| 54 | "name": "Support Hours", |
| 55 | "doctype": "Issue", |
| 56 | "is_query_report": True |
| 57 | }, |
| 58 | ] |
| 59 | }, |
| 60 | { |
| 61 | "label": _("Service Level Agreement"), |
| 62 | "items": [ |
| 63 | { |
| 64 | "type": "doctype", |
| 65 | "name": "Employee Group", |
| 66 | "description": _("Support Team."), |
| 67 | }, |
| 68 | { |
| 69 | "type": "doctype", |
| 70 | "name": "Service Level", |
| 71 | "description": _("Service Level."), |
| 72 | }, |
| 73 | { |
| 74 | "type": "doctype", |
| 75 | "name": "Service Level Agreement", |
| 76 | "description": _("Service Level Agreement."), |
| 77 | } |
| 78 | ] |
| 79 | }, |
| 80 | ] |