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