blob: ca9716481e4d8dfde47a547b65c078d37dca8b3f [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Anand Doshif5794f12014-03-03 15:05:28 +05302from frappe import _
3
Anand Doshi08ef4672014-05-08 11:43:18 +05304def get_data():
5 return [
6 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +05307 "label": _("Issues"),
Anand Doshi08ef4672014-05-08 11:43:18 +05308 "items": [
9 {
10 "type": "doctype",
Rushabh Mehtabd9b62f2014-11-28 11:45:02 +053011 "name": "Issue",
Anand Doshi08ef4672014-05-08 11:43:18 +053012 "description": _("Support queries from customers."),
13 },
14 {
15 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053016 "name": "Communication",
17 "description": _("Communication log."),
Anand Doshi08ef4672014-05-08 11:43:18 +053018 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053019 ]
20 },
21 {
22 "label": _("Maintenance"),
23 "items": [
Anand Doshi08ef4672014-05-08 11:43:18 +053024 {
25 "type": "doctype",
26 "name": "Maintenance Schedule",
27 "description": _("Plan for maintenance visits."),
28 },
29 {
30 "type": "doctype",
31 "name": "Maintenance Visit",
32 "description": _("Visit report for maintenance call."),
33 },
34 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053035 "type": "report",
36 "name": "Maintenance Schedules",
37 "is_query_report": True,
38 "doctype": "Maintenance Schedule"
Anand Doshi08ef4672014-05-08 11:43:18 +053039 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053040 ]
41 },
42 {
43 "label": _("Warranty"),
44 "items": [
Anand Doshi08ef4672014-05-08 11:43:18 +053045 {
46 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053047 "name": "Warranty Claim",
48 "description": _("Warranty Claim against Serial No."),
Anand Doshi08ef4672014-05-08 11:43:18 +053049 },
50 {
51 "type": "doctype",
52 "name": "Serial No",
53 "description": _("Single unit of an Item."),
54 },
55 ]
56 },
57 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053058 "label": _("Reports"),
Anand Doshi08ef4672014-05-08 11:43:18 +053059 "icon": "icon-list",
60 "items": [
61 {
62 "type": "page",
63 "name": "support-analytics",
64 "label": _("Support Analytics"),
65 "icon": "icon-bar-chart"
66 },
Anand Doshi08ef4672014-05-08 11:43:18 +053067 ]
68 },
69 ]