Anand Doshi | d57e793 | 2015-02-24 12:24:53 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 2 | from frappe import _ |
| 3 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 4 | def get_data(): |
| 5 | return [ |
| 6 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 7 | "label": _("Issues"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 8 | "items": [ |
| 9 | { |
| 10 | "type": "doctype", |
Rushabh Mehta | bd9b62f | 2014-11-28 11:45:02 +0530 | [diff] [blame] | 11 | "name": "Issue", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 12 | "description": _("Support queries from customers."), |
| 13 | }, |
| 14 | { |
| 15 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 16 | "name": "Communication", |
| 17 | "description": _("Communication log."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 18 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 19 | ] |
| 20 | }, |
| 21 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 22 | "label": _("Warranty"), |
| 23 | "items": [ |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 24 | { |
| 25 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 26 | "name": "Warranty Claim", |
| 27 | "description": _("Warranty Claim against Serial No."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 28 | }, |
| 29 | { |
| 30 | "type": "doctype", |
| 31 | "name": "Serial No", |
| 32 | "description": _("Single unit of an Item."), |
| 33 | }, |
| 34 | ] |
| 35 | }, |
| 36 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 37 | "label": _("Reports"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 38 | "icon": "icon-list", |
| 39 | "items": [ |
| 40 | { |
| 41 | "type": "page", |
| 42 | "name": "support-analytics", |
| 43 | "label": _("Support Analytics"), |
| 44 | "icon": "icon-bar-chart" |
| 45 | }, |
Rushabh Mehta | f7e6ec0 | 2016-06-14 18:08:51 +0530 | [diff] [blame] | 46 | { |
| 47 | "type": "report", |
| 48 | "name": "Minutes to First Response for Issues", |
| 49 | "doctype": "Issue", |
| 50 | "is_query_report": True |
| 51 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 52 | ] |
| 53 | }, |
| 54 | ] |