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": _("Projects"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 8 | "icon": "icon-star", |
| 9 | "items": [ |
| 10 | { |
| 11 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 12 | "name": "Project", |
| 13 | "description": _("Project master."), |
| 14 | }, |
| 15 | { |
| 16 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 17 | "name": "Task", |
| 18 | "description": _("Project activity / task."), |
| 19 | }, |
| 20 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 21 | "type": "report", |
Faris Ansari | a0608d4 | 2016-10-10 14:32:35 +0530 | [diff] [blame] | 22 | "route": "List/Task/Gantt", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 23 | "doctype": "Task", |
| 24 | "name": "Gantt Chart", |
| 25 | "description": _("Gantt chart of all tasks.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 26 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 27 | ] |
| 28 | }, |
| 29 | { |
| 30 | "label": _("Time Tracking"), |
| 31 | "items": [ |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 32 | { |
| 33 | "type": "doctype", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 34 | "name": "Timesheet", |
| 35 | "description": _("Timesheet for tasks."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 36 | }, |
| 37 | { |
| 38 | "type": "doctype", |
| 39 | "name": "Activity Type", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 40 | "description": _("Types of activities for Time Logs"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 41 | }, |
Neil Trini Lasrado | 458b888 | 2015-03-24 12:49:45 +0530 | [diff] [blame] | 42 | { |
| 43 | "type": "doctype", |
| 44 | "name": "Activity Cost", |
| 45 | "description": _("Cost of various activities"), |
| 46 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 47 | ] |
| 48 | }, |
| 49 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 50 | "label": _("Reports"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 51 | "icon": "icon-list", |
| 52 | "items": [ |
| 53 | { |
| 54 | "type": "report", |
| 55 | "is_query_report": True, |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 56 | "name": "Daily Timesheet Summary", |
| 57 | "doctype": "Timesheet" |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 58 | }, |
| 59 | { |
| 60 | "type": "report", |
| 61 | "is_query_report": True, |
| 62 | "name": "Project wise Stock Tracking", |
| 63 | "doctype": "Project" |
| 64 | }, |
| 65 | ] |
| 66 | }, |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 67 | { |
| 68 | "label": _("Help"), |
| 69 | "icon": "icon-facetime-video", |
| 70 | "items": [ |
| 71 | { |
| 72 | "type": "help", |
| 73 | "label": _("Managing Projects"), |
| 74 | "youtube_id": "egxIGwtoKI4" |
| 75 | }, |
| 76 | ] |
| 77 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 78 | ] |