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