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