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