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 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 7 | "label": _("Purchasing"), |
| 8 | "icon": "fa fa-star", |
| 9 | "items": [ |
| 10 | { |
| 11 | "type": "doctype", |
| 12 | "name": "Purchase Order", |
| 13 | "onboard": 1, |
| 14 | "dependencies": ["Item", "Supplier"], |
| 15 | "description": _("Purchase Orders given to Suppliers."), |
| 16 | }, |
| 17 | { |
| 18 | "type": "doctype", |
| 19 | "name": "Material Request", |
| 20 | "onboard": 1, |
| 21 | "dependencies": ["Item"], |
| 22 | "description": _("Request for purchase."), |
| 23 | }, |
| 24 | { |
| 25 | "type": "doctype", |
| 26 | "name": "Request for Quotation", |
| 27 | "onboard": 1, |
| 28 | "dependencies": ["Item", "Supplier"], |
| 29 | "description": _("Request for quotation."), |
| 30 | }, |
| 31 | { |
| 32 | "type": "doctype", |
| 33 | "name": "Supplier Quotation", |
| 34 | "dependencies": ["Item", "Supplier"], |
| 35 | "description": _("Quotations received from Suppliers."), |
| 36 | }, |
| 37 | ] |
| 38 | }, |
| 39 | { |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 40 | "label": _("Items and Pricing"), |
| 41 | "items": [ |
| 42 | { |
| 43 | "type": "doctype", |
| 44 | "name": "Item", |
| 45 | "onboard": 1, |
| 46 | "description": _("All Products or Services."), |
| 47 | }, |
| 48 | { |
| 49 | "type": "doctype", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 50 | "name": "Item Price", |
| 51 | "description": _("Multiple Item prices."), |
| 52 | "onboard": 1, |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 53 | "route": "#Report/Item Price" |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 54 | }, |
| 55 | { |
| 56 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 57 | "name": "Price List", |
| 58 | "description": _("Price List master.") |
| 59 | }, |
| 60 | { |
| 61 | "type": "doctype", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 62 | "name": "Product Bundle", |
| 63 | "description": _("Bundle items at time of sale."), |
| 64 | }, |
| 65 | { |
| 66 | "type": "doctype", |
| 67 | "name": "Item Group", |
| 68 | "icon": "fa fa-sitemap", |
| 69 | "label": _("Item Group"), |
| 70 | "link": "Tree/Item Group", |
| 71 | "description": _("Tree of Item Groups."), |
| 72 | }, |
| 73 | { |
| 74 | "type": "doctype", |
| 75 | "name": "Pricing Rule", |
| 76 | "description": _("Rules for applying pricing and discount.") |
| 77 | }, |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 78 | ] |
| 79 | }, |
| 80 | { |
Prateeksha Singh | 9d4a183 | 2019-02-11 15:14:50 +0530 | [diff] [blame] | 81 | "label": _("Settings"), |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 82 | "icon": "fa fa-cog", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 83 | "items": [ |
| 84 | { |
| 85 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 86 | "name": "Buying Settings", |
Prateeksha Singh | 8aa4594 | 2019-03-04 14:00:02 +0530 | [diff] [blame] | 87 | "settings": 1, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 88 | "description": _("Default settings for buying transactions.") |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 89 | }, |
| 90 | { |
| 91 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 92 | "name": "Purchase Taxes and Charges Template", |
| 93 | "description": _("Tax template for buying transactions.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 94 | }, |
| 95 | { |
| 96 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 97 | "name":"Terms and Conditions", |
| 98 | "label": _("Terms and Conditions Template"), |
| 99 | "description": _("Template of terms or contract.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 100 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 101 | ] |
| 102 | }, |
| 103 | { |
| 104 | "label": _("Supplier"), |
| 105 | "items": [ |
| 106 | { |
| 107 | "type": "doctype", |
| 108 | "name": "Supplier", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 109 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 110 | "description": _("Supplier database."), |
| 111 | }, |
| 112 | { |
| 113 | "type": "doctype", |
Zlash65 | 8907078 | 2018-04-19 18:37:29 +0530 | [diff] [blame] | 114 | "name": "Supplier Group", |
| 115 | "description": _("Supplier Group master.") |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 116 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 117 | { |
| 118 | "type": "doctype", |
| 119 | "name": "Contact", |
| 120 | "description": _("All Contacts."), |
| 121 | }, |
| 122 | { |
| 123 | "type": "doctype", |
| 124 | "name": "Address", |
| 125 | "description": _("All Addresses."), |
| 126 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 127 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 128 | ] |
| 129 | }, |
| 130 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 131 | "label": _("Key Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 132 | "icon": "fa fa-table", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 133 | "items": [ |
| 134 | { |
Deepesh Garg | a057f4c | 2018-11-12 17:01:02 +0530 | [diff] [blame] | 135 | "type": "report", |
| 136 | "is_query_report": True, |
| 137 | "name": "Purchase Analytics", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 138 | "reference_doctype": "Purchase Order", |
| 139 | "onboard": 1 |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 140 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 141 | { |
| 142 | "type": "report", |
| 143 | "is_query_report": True, |
| 144 | "name": "Supplier-Wise Sales Analytics", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 145 | "reference_doctype": "Stock Ledger Entry", |
| 146 | "onboard": 1 |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 147 | }, |
| 148 | { |
| 149 | "type": "report", |
| 150 | "is_query_report": True, |
| 151 | "name": "Purchase Order Trends", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 152 | "reference_doctype": "Purchase Order", |
| 153 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 154 | }, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 155 | { |
| 156 | "type": "report", |
| 157 | "is_query_report": True, |
| 158 | "name": "Requested Items To Be Ordered", |
| 159 | "reference_doctype": "Material Request", |
| 160 | "onboard": 1, |
| 161 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 162 | ] |
| 163 | }, |
| 164 | { |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 165 | "label": _("Supplier Scorecard"), |
| 166 | "items": [ |
| 167 | { |
| 168 | "type": "doctype", |
| 169 | "name": "Supplier Scorecard", |
| 170 | "description": _("All Supplier scorecards."), |
| 171 | }, |
| 172 | { |
| 173 | "type": "doctype", |
| 174 | "name": "Supplier Scorecard Variable", |
| 175 | "description": _("Templates of supplier scorecard variables.") |
| 176 | }, |
| 177 | { |
| 178 | "type": "doctype", |
| 179 | "name": "Supplier Scorecard Criteria", |
| 180 | "description": _("Templates of supplier scorecard criteria."), |
| 181 | }, |
| 182 | { |
| 183 | "type": "doctype", |
| 184 | "name": "Supplier Scorecard Standing", |
| 185 | "description": _("Templates of supplier standings."), |
| 186 | }, |
| 187 | |
| 188 | ] |
| 189 | }, |
| 190 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 191 | "label": _("Other Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 192 | "icon": "fa fa-list", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 193 | "items": [ |
| 194 | { |
| 195 | "type": "report", |
| 196 | "is_query_report": True, |
| 197 | "name": "Items To Be Requested", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 198 | "reference_doctype": "Item", |
| 199 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 200 | }, |
| 201 | { |
| 202 | "type": "report", |
| 203 | "is_query_report": True, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 204 | "name": "Item-wise Purchase History", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 205 | "reference_doctype": "Item", |
| 206 | "onboard": 1, |
| 207 | }, |
| 208 | { |
| 209 | "type": "report", |
| 210 | "is_query_report": True, |
| 211 | "name": "Material Requests for which Supplier Quotations are not created", |
| 212 | "reference_doctype": "Material Request" |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 213 | }, |
| 214 | { |
| 215 | "type": "report", |
| 216 | "is_query_report": True, |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 217 | "name": "Address And Contacts", |
mbauskar | cbc49e2 | 2017-01-19 17:45:22 +0530 | [diff] [blame] | 218 | "label": "Supplier Addresses And Contacts", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 219 | "reference_doctype": "Address", |
mbauskar | cbc49e2 | 2017-01-19 17:45:22 +0530 | [diff] [blame] | 220 | "route_options": { |
| 221 | "party_type": "Supplier" |
| 222 | } |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 223 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 224 | ] |
| 225 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 226 | { |
| 227 | "label": _("Help"), |
| 228 | "items": [ |
| 229 | { |
| 230 | "type": "help", |
| 231 | "label": _("Customer and Supplier"), |
| 232 | "youtube_id": "anoGi_RpQ20" |
| 233 | }, |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 234 | { |
| 235 | "type": "help", |
| 236 | "label": _("Material Request to Purchase Order"), |
| 237 | "youtube_id": "4TN9kPyfIqM" |
| 238 | }, |
| 239 | { |
| 240 | "type": "help", |
| 241 | "label": _("Purchase Order to Payment"), |
| 242 | "youtube_id": "EK65tLdVUDk" |
| 243 | }, |
| 244 | { |
| 245 | "type": "help", |
| 246 | "label": _("Managing Subcontracting"), |
| 247 | "youtube_id": "ThiMCC2DtKo" |
| 248 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 249 | ] |
| 250 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 251 | ] |