Chillar Anand | 915b343 | 2021-09-02 16:44:59 +0530 | [diff] [blame] | 1 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 2 | from frappe import _ |
| 3 | |
Chillar Anand | 915b343 | 2021-09-02 16:44:59 +0530 | [diff] [blame] | 4 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 5 | def get_data(): |
| 6 | return [ |
| 7 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 8 | "label": _("Projects"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 9 | "icon": "fa fa-star", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 10 | "items": [ |
| 11 | { |
| 12 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 13 | "name": "Project", |
| 14 | "description": _("Project master."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 15 | "onboard": 1, |
renzodemie | 417dfed | 2018-03-20 14:28:15 +0800 | [diff] [blame] | 16 | }, |
| 17 | { |
| 18 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 19 | "name": "Task", |
Rushabh Mehta | 542bc01 | 2020-11-18 15:00:34 +0530 | [diff] [blame] | 20 | "route": "/app/List/Task", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 21 | "description": _("Project activity / task."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 22 | "onboard": 1, |
KanchanChauhan | 7800bd8 | 2017-07-26 17:55:25 +0530 | [diff] [blame] | 23 | }, |
| 24 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 25 | "type": "report", |
Rushabh Mehta | 542bc01 | 2020-11-18 15:00:34 +0530 | [diff] [blame] | 26 | "route": "/app/List/Task/Gantt", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 27 | "doctype": "Task", |
| 28 | "name": "Gantt Chart", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 29 | "description": _("Gantt chart of all tasks."), |
| 30 | "onboard": 1, |
| 31 | }, |
| 32 | { |
| 33 | "type": "doctype", |
Rushabh Mehta | e998467 | 2019-02-18 18:35:51 +0530 | [diff] [blame] | 34 | "name": "Project Template", |
| 35 | "description": _("Make project from a template."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 36 | }, |
| 37 | { |
| 38 | "type": "doctype", |
| 39 | "name": "Project Type", |
| 40 | "description": _("Define Project type."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 41 | }, |
Rushabh Mehta | e998467 | 2019-02-18 18:35:51 +0530 | [diff] [blame] | 42 | { |
| 43 | "type": "doctype", |
| 44 | "name": "Project Update", |
| 45 | "description": _("Project Update."), |
| 46 | "dependencies": ["Project"], |
| 47 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 48 | ] |
| 49 | }, |
| 50 | { |
| 51 | "label": _("Time Tracking"), |
| 52 | "items": [ |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 53 | { |
| 54 | "type": "doctype", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 55 | "name": "Timesheet", |
| 56 | "description": _("Timesheet for tasks."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 57 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 58 | }, |
| 59 | { |
| 60 | "type": "doctype", |
| 61 | "name": "Activity Type", |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 62 | "description": _("Types of activities for Time Logs"), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 63 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 64 | }, |
Neil Trini Lasrado | 458b888 | 2015-03-24 12:49:45 +0530 | [diff] [blame] | 65 | { |
| 66 | "type": "doctype", |
| 67 | "name": "Activity Cost", |
| 68 | "description": _("Cost of various activities"), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 69 | "dependencies": ["Activity Type"], |
Neil Trini Lasrado | 458b888 | 2015-03-24 12:49:45 +0530 | [diff] [blame] | 70 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 71 | ] |
| 72 | }, |
| 73 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 74 | "label": _("Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 75 | "icon": "fa fa-list", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 76 | "items": [ |
| 77 | { |
| 78 | "type": "report", |
| 79 | "is_query_report": True, |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 80 | "name": "Daily Timesheet Summary", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 81 | "doctype": "Timesheet", |
| 82 | "onboard": 1, |
| 83 | "dependencies": ["Timesheet"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 84 | }, |
| 85 | { |
| 86 | "type": "report", |
| 87 | "is_query_report": True, |
| 88 | "name": "Project wise Stock Tracking", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 89 | "doctype": "Project", |
| 90 | "dependencies": ["Project"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 91 | }, |
Faris Ansari | 1abd1e7 | 2019-07-15 14:34:10 +0530 | [diff] [blame] | 92 | { |
| 93 | "type": "report", |
| 94 | "is_query_report": True, |
| 95 | "name": "Project Billing Summary", |
| 96 | "doctype": "Project", |
| 97 | "dependencies": ["Project"], |
| 98 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 99 | ] |
| 100 | }, |
Rushabh Mehta | 542bc01 | 2020-11-18 15:00:34 +0530 | [diff] [blame] | 101 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 102 | ] |