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."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 14 | "onboard": 1, |
renzodemie | 417dfed | 2018-03-20 14:28:15 +0800 | [diff] [blame] | 15 | }, |
| 16 | { |
| 17 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 18 | "name": "Task", |
Himanshu Warekar | 1cb695b | 2019-02-28 11:42:36 +0530 | [diff] [blame] | 19 | "route": "#List/Task", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 20 | "description": _("Project activity / task."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 21 | "onboard": 1, |
KanchanChauhan | 7800bd8 | 2017-07-26 17:55:25 +0530 | [diff] [blame] | 22 | }, |
| 23 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 24 | "type": "report", |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 25 | "route": "#List/Task/Gantt", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 26 | "doctype": "Task", |
| 27 | "name": "Gantt Chart", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 28 | "description": _("Gantt chart of all tasks."), |
| 29 | "onboard": 1, |
| 30 | }, |
| 31 | { |
| 32 | "type": "doctype", |
Rushabh Mehta | e998467 | 2019-02-18 18:35:51 +0530 | [diff] [blame] | 33 | "name": "Project Template", |
| 34 | "description": _("Make project from a template."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 35 | }, |
| 36 | { |
| 37 | "type": "doctype", |
| 38 | "name": "Project Type", |
| 39 | "description": _("Define Project type."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 40 | }, |
Rushabh Mehta | e998467 | 2019-02-18 18:35:51 +0530 | [diff] [blame] | 41 | { |
| 42 | "type": "doctype", |
| 43 | "name": "Project Update", |
| 44 | "description": _("Project Update."), |
| 45 | "dependencies": ["Project"], |
| 46 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 47 | ] |
| 48 | }, |
| 49 | { |
| 50 | "label": _("Time Tracking"), |
| 51 | "items": [ |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 52 | { |
| 53 | "type": "doctype", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 54 | "name": "Timesheet", |
| 55 | "description": _("Timesheet for tasks."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 56 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 57 | }, |
| 58 | { |
| 59 | "type": "doctype", |
| 60 | "name": "Activity Type", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 61 | "description": _("Types of activities for Time Logs"), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 62 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 63 | }, |
Neil Trini Lasrado | 458b888 | 2015-03-24 12:49:45 +0530 | [diff] [blame] | 64 | { |
| 65 | "type": "doctype", |
| 66 | "name": "Activity Cost", |
| 67 | "description": _("Cost of various activities"), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 68 | "dependencies": ["Activity Type"], |
Neil Trini Lasrado | 458b888 | 2015-03-24 12:49:45 +0530 | [diff] [blame] | 69 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 70 | ] |
| 71 | }, |
| 72 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 73 | "label": _("Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 74 | "icon": "fa fa-list", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 75 | "items": [ |
| 76 | { |
| 77 | "type": "report", |
| 78 | "is_query_report": True, |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 79 | "name": "Daily Timesheet Summary", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 80 | "doctype": "Timesheet", |
| 81 | "onboard": 1, |
| 82 | "dependencies": ["Timesheet"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 83 | }, |
| 84 | { |
| 85 | "type": "report", |
| 86 | "is_query_report": True, |
| 87 | "name": "Project wise Stock Tracking", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 88 | "doctype": "Project", |
| 89 | "dependencies": ["Project"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 90 | }, |
| 91 | ] |
| 92 | }, |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 93 | { |
| 94 | "label": _("Help"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 95 | "icon": "fa fa-facetime-video", |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 96 | "items": [ |
| 97 | { |
| 98 | "type": "help", |
| 99 | "label": _("Managing Projects"), |
| 100 | "youtube_id": "egxIGwtoKI4" |
| 101 | }, |
| 102 | ] |
| 103 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 104 | ] |