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": _("Sales"), |
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", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 12 | "name": "Customer", |
| 13 | "description": _("Customer database."), |
| 14 | "onboard": 1, |
| 15 | }, |
| 16 | { |
| 17 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 18 | "name": "Quotation", |
| 19 | "description": _("Quotes to Leads or Customers."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 20 | "onboard": 1, |
| 21 | "dependencies": ["Item", "Customer"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 22 | }, |
| 23 | { |
| 24 | "type": "doctype", |
| 25 | "name": "Sales Order", |
| 26 | "description": _("Confirmed orders from Customers."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 27 | "onboard": 1, |
| 28 | "dependencies": ["Item", "Customer"], |
| 29 | }, |
| 30 | { |
| 31 | "type": "doctype", |
| 32 | "name": "Sales Partner", |
| 33 | "description": _("Manage Sales Partners."), |
| 34 | "dependencies": ["Item"], |
| 35 | }, |
| 36 | { |
| 37 | "type": "doctype", |
| 38 | "label": _("Sales Person"), |
| 39 | "name": "Sales Person", |
| 40 | "icon": "fa fa-sitemap", |
| 41 | "link": "Tree/Sales Person", |
| 42 | "description": _("Manage Sales Person Tree."), |
| 43 | "dependencies": ["Item", "Customer"], |
| 44 | }, |
| 45 | { |
| 46 | "type": "report", |
| 47 | "is_query_report": True, |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 48 | "name": "Territory Target Variance (Item Group-Wise)", |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 49 | "route": "#query-report/Territory Target Variance Item Group-Wise", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 50 | "doctype": "Territory", |
| 51 | }, |
| 52 | { |
| 53 | "type": "report", |
| 54 | "is_query_report": True, |
| 55 | "name": "Sales Person Target Variance (Item Group-Wise)", |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 56 | "route": "#query-report/Sales Person Target Variance Item Group-Wise", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 57 | "doctype": "Sales Person", |
| 58 | "dependencies": ["Sales Person"], |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 59 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 60 | ] |
| 61 | }, |
| 62 | { |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 63 | "label": _("Items and Pricing"), |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 64 | "items": [ |
| 65 | { |
| 66 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 67 | "name": "Item", |
| 68 | "description": _("All Products or Services."), |
| 69 | "onboard": 1, |
| 70 | }, |
| 71 | { |
| 72 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 73 | "name": "Item Price", |
| 74 | "description": _("Multiple Item prices."), |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 75 | "route": "#Report/Item Price", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 76 | "dependencies": ["Item", "Price List"], |
| 77 | "onboard": 1, |
| 78 | }, |
| 79 | { |
| 80 | "type": "doctype", |
| 81 | "name": "Price List", |
| 82 | "description": _("Price List master."), |
| 83 | "onboard": 1, |
| 84 | }, |
| 85 | { |
| 86 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 87 | "name": "Item Group", |
| 88 | "icon": "fa fa-sitemap", |
| 89 | "label": _("Item Group"), |
| 90 | "link": "Tree/Item Group", |
| 91 | "description": _("Tree of Item Groups."), |
| 92 | "onboard": 1, |
| 93 | }, |
| 94 | { |
| 95 | "type": "doctype", |
| 96 | "name": "Product Bundle", |
| 97 | "description": _("Bundle items at time of sale."), |
| 98 | "dependencies": ["Item"], |
| 99 | }, |
| 100 | { |
| 101 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 102 | "name": "Pricing Rule", |
| 103 | "description": _("Rules for applying pricing and discount."), |
| 104 | "dependencies": ["Item"], |
| 105 | }, |
| 106 | { |
| 107 | "type": "doctype", |
| 108 | "name": "Shipping Rule", |
| 109 | "description": _("Rules for adding shipping costs."), |
| 110 | }, |
| 111 | |
| 112 | ] |
| 113 | }, |
| 114 | { |
Prateeksha Singh | 9d4a183 | 2019-02-11 15:14:50 +0530 | [diff] [blame] | 115 | "label": _("Settings"), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 116 | "icon": "fa fa-cog", |
| 117 | "items": [ |
| 118 | { |
| 119 | "type": "doctype", |
| 120 | "name": "Selling Settings", |
| 121 | "description": _("Default settings for selling transactions."), |
Prateeksha Singh | 8aa4594 | 2019-03-04 14:00:02 +0530 | [diff] [blame] | 122 | "settings": 1, |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 123 | }, |
| 124 | { |
| 125 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 126 | "name":"Terms and Conditions", |
| 127 | "label": _("Terms and Conditions Template"), |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 128 | "description": _("Template of terms or contract."), |
| 129 | "onboard": 1, |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 130 | }, |
| 131 | { |
| 132 | "type": "doctype", |
| 133 | "name": "Sales Taxes and Charges Template", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 134 | "description": _("Tax template for selling transactions."), |
| 135 | "onboard": 1, |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 136 | }, |
| 137 | { |
| 138 | "type": "doctype", |
| 139 | "name": "Lead Source", |
| 140 | "description": _("Track Leads by Lead Source.") |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 141 | }, |
| 142 | { |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 143 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 144 | "label": _("Customer Group"), |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 145 | "name": "Customer Group", |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 146 | "icon": "fa fa-sitemap", |
Saurabh | 1702273 | 2016-06-21 13:19:17 +0530 | [diff] [blame] | 147 | "link": "Tree/Customer Group", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 148 | "description": _("Manage Customer Group Tree."), |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 149 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 150 | { |
| 151 | "type": "doctype", |
| 152 | "name": "Contact", |
| 153 | "description": _("All Contacts."), |
| 154 | }, |
| 155 | { |
| 156 | "type": "doctype", |
| 157 | "name": "Address", |
| 158 | "description": _("All Addresses."), |
| 159 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 160 | { |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 161 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 162 | "label": _("Territory"), |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 163 | "name": "Territory", |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 164 | "icon": "fa fa-sitemap", |
Saurabh | 1702273 | 2016-06-21 13:19:17 +0530 | [diff] [blame] | 165 | "link": "Tree/Territory", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 166 | "description": _("Manage Territory Tree."), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 167 | }, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 168 | { |
| 169 | "type": "doctype", |
| 170 | "name": "Campaign", |
| 171 | "description": _("Sales campaigns."), |
| 172 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 173 | ] |
| 174 | }, |
| 175 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 176 | "label": _("Key Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 177 | "icon": "fa fa-table", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 178 | "items": [ |
| 179 | { |
Deepesh Garg | 6714214 | 2018-11-12 16:15:54 +0530 | [diff] [blame] | 180 | "type": "report", |
| 181 | "is_query_report": True, |
| 182 | "name": "Sales Analytics", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 183 | "doctype": "Sales Order", |
| 184 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 185 | }, |
| 186 | { |
| 187 | "type": "page", |
| 188 | "name": "sales-funnel", |
| 189 | "label": _("Sales Funnel"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 190 | "icon": "fa fa-bar-chart", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 191 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 192 | }, |
| 193 | { |
| 194 | "type": "report", |
| 195 | "is_query_report": True, |
| 196 | "name": "Customer Acquisition and Loyalty", |
| 197 | "doctype": "Customer", |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 198 | "icon": "fa fa-bar-chart", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 199 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 200 | { |
| 201 | "type": "report", |
| 202 | "is_query_report": True, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 203 | "name": "Inactive Customers", |
| 204 | "doctype": "Sales Order" |
| 205 | }, |
| 206 | { |
| 207 | "type": "report", |
| 208 | "is_query_report": True, |
| 209 | "name": "Ordered Items To Be Delivered", |
| 210 | "doctype": "Sales Order" |
| 211 | }, |
| 212 | { |
| 213 | "type": "report", |
| 214 | "is_query_report": True, |
| 215 | "name": "Sales Person-wise Transaction Summary", |
| 216 | "doctype": "Sales Order" |
| 217 | }, |
| 218 | { |
| 219 | "type": "report", |
| 220 | "is_query_report": True, |
| 221 | "name": "Item-wise Sales History", |
| 222 | "doctype": "Item" |
| 223 | }, |
| 224 | { |
| 225 | "type": "report", |
| 226 | "is_query_report": True, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 227 | "name": "Quotation Trends", |
| 228 | "doctype": "Quotation" |
| 229 | }, |
| 230 | { |
| 231 | "type": "report", |
| 232 | "is_query_report": True, |
| 233 | "name": "Sales Order Trends", |
| 234 | "doctype": "Sales Order" |
| 235 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 236 | ] |
| 237 | }, |
| 238 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 239 | "label": _("Other Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 240 | "icon": "fa fa-list", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 241 | "items": [ |
| 242 | { |
| 243 | "type": "report", |
| 244 | "is_query_report": True, |
| 245 | "name": "Lead Details", |
| 246 | "doctype": "Lead" |
| 247 | }, |
| 248 | { |
| 249 | "type": "report", |
| 250 | "is_query_report": True, |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 251 | "name": "Address And Contacts", |
ahmadRagheb | 9017f37 | 2017-06-07 17:38:39 +0300 | [diff] [blame] | 252 | "label": _("Customer Addresses And Contacts"), |
mbauskar | cbc49e2 | 2017-01-19 17:45:22 +0530 | [diff] [blame] | 253 | "doctype": "Address", |
| 254 | "route_options": { |
| 255 | "party_type": "Customer" |
| 256 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 257 | }, |
| 258 | { |
| 259 | "type": "report", |
| 260 | "is_query_report": True, |
Rushabh Mehta | b45a6bc | 2015-06-17 01:54:56 +0530 | [diff] [blame] | 261 | "name": "BOM Search", |
| 262 | "doctype": "BOM" |
| 263 | }, |
| 264 | { |
| 265 | "type": "report", |
| 266 | "is_query_report": True, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 267 | "name": "Available Stock for Packing Items", |
| 268 | "doctype": "Item", |
| 269 | }, |
| 270 | { |
| 271 | "type": "report", |
| 272 | "is_query_report": True, |
| 273 | "name": "Pending SO Items For Purchase Request", |
| 274 | "doctype": "Sales Order" |
| 275 | }, |
Nabin Hait | 7dbcee8 | 2014-10-30 15:49:17 +0530 | [diff] [blame] | 276 | { |
| 277 | "type": "report", |
| 278 | "is_query_report": True, |
| 279 | "name": "Customer Credit Balance", |
| 280 | "doctype": "Customer" |
| 281 | }, |
Nabin Hait | 19ce904 | 2018-05-21 11:07:04 +0530 | [diff] [blame] | 282 | { |
| 283 | "type": "report", |
| 284 | "is_query_report": True, |
| 285 | "name": "Customers Without Any Sales Transactions", |
| 286 | "doctype": "Customer" |
| 287 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 288 | ] |
| 289 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 290 | { |
| 291 | "label": _("Help"), |
| 292 | "items": [ |
| 293 | { |
| 294 | "type": "help", |
| 295 | "label": _("Customer and Supplier"), |
| 296 | "youtube_id": "anoGi_RpQ20" |
| 297 | }, |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 298 | { |
| 299 | "type": "help", |
| 300 | "label": _("Sales Order to Payment"), |
| 301 | "youtube_id": "7AMq4lqkN4A" |
| 302 | }, |
| 303 | { |
| 304 | "type": "help", |
| 305 | "label": _("Point-of-Sale"), |
| 306 | "youtube_id": "4WkelWkbP_c" |
| 307 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 308 | ] |
| 309 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 310 | ] |