Anand Doshi | d57e793 | 2015-02-24 12:24:53 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 2 | from frappe import _ |
Rushabh Mehta | c0bb453 | 2014-09-09 16:15:35 +0530 | [diff] [blame] | 3 | from frappe.desk.moduleview import add_setup_section |
Rushabh Mehta | c4ec534 | 2014-02-07 19:04:19 +0530 | [diff] [blame] | 4 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 5 | def get_data(): |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 6 | data = [ |
| 7 | { |
| 8 | "label": _("Settings"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 9 | "icon": "fa fa-wrench", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 10 | "items": [ |
| 11 | { |
| 12 | "type": "doctype", |
| 13 | "name": "Global Defaults", |
Prateeksha Singh | 01a045a | 2019-02-11 14:00:48 +0530 | [diff] [blame] | 14 | "label": _("ERPNext Settings"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 15 | "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."), |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 16 | "hide_count": True, |
Prateeksha Singh | 8aa4594 | 2019-03-04 14:00:02 +0530 | [diff] [blame] | 17 | "settings": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 18 | } |
| 19 | ] |
| 20 | }, |
| 21 | { |
Rushabh Mehta | afbfdcf | 2014-12-30 18:09:40 +0530 | [diff] [blame] | 22 | "label": _("Printing"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 23 | "icon": "fa fa-print", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 24 | "items": [ |
| 25 | { |
| 26 | "type": "doctype", |
| 27 | "name": "Letter Head", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 28 | "description": _("Letter Heads for print templates."), |
| 29 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 30 | }, |
| 31 | { |
| 32 | "type": "doctype", |
| 33 | "name": "Print Heading", |
| 34 | "description": _("Titles for print templates e.g. Proforma Invoice.") |
| 35 | }, |
| 36 | { |
| 37 | "type": "doctype", |
Rushabh Mehta | c22e11d | 2014-06-05 13:17:45 +0530 | [diff] [blame] | 38 | "name": "Address Template", |
| 39 | "description": _("Country wise default Address Templates") |
| 40 | }, |
| 41 | { |
| 42 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 43 | "name": "Terms and Conditions", |
| 44 | "description": _("Standard contract terms for Sales or Purchase.") |
| 45 | }, |
| 46 | ] |
| 47 | }, |
| 48 | { |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 49 | "label": _("Help"), |
| 50 | "items": [ |
| 51 | { |
| 52 | "type": "help", |
| 53 | "name": _("Data Import and Export"), |
| 54 | "youtube_id": "6wiriRKPhmg" |
| 55 | }, |
| 56 | { |
| 57 | "type": "help", |
| 58 | "label": _("Setting up Email"), |
| 59 | "youtube_id": "YFYe0DrB95o" |
| 60 | }, |
| 61 | { |
| 62 | "type": "help", |
| 63 | "label": _("Printing and Branding"), |
| 64 | "youtube_id": "cKZHcx1znMc" |
| 65 | }, |
| 66 | { |
| 67 | "type": "help", |
| 68 | "label": _("Users and Permissions"), |
Nabin Hait | 5e85ab3 | 2018-11-12 16:46:12 +0530 | [diff] [blame] | 69 | "youtube_id": "8Slw1hsTmUI" |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 70 | }, |
| 71 | { |
| 72 | "type": "help", |
| 73 | "label": _("Workflow"), |
| 74 | "youtube_id": "yObJUg9FxFs" |
| 75 | }, |
| 76 | ] |
| 77 | }, |
| 78 | { |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 79 | "label": _("Customize"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 80 | "icon": "fa fa-glass", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 81 | "items": [ |
| 82 | { |
| 83 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 84 | "name": "Authorization Rule", |
| 85 | "description": _("Create rules to restrict transactions based on values.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 86 | } |
| 87 | ] |
| 88 | }, |
| 89 | { |
| 90 | "label": _("Email"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 91 | "icon": "fa fa-envelope", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 92 | "items": [ |
| 93 | { |
| 94 | "type": "doctype", |
| 95 | "name": "Email Digest", |
| 96 | "description": _("Create and manage daily, weekly and monthly email digests.") |
| 97 | }, |
| 98 | { |
| 99 | "type": "doctype", |
Nabin Hait | e7546e2 | 2014-05-28 16:25:54 +0530 | [diff] [blame] | 100 | "name": "SMS Settings", |
| 101 | "description": _("Setup SMS gateway settings") |
| 102 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 103 | ] |
Rushabh Mehta | 7278c0a | 2015-07-03 12:21:50 +0530 | [diff] [blame] | 104 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 105 | ] |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 106 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 107 | for module, label, icon in ( |
Suraj Shetty | 242b16f | 2018-12-24 15:47:23 +0530 | [diff] [blame] | 108 | ("accounts", _("Accounting"), "fa fa-money"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 109 | ("stock", _("Stock"), "fa fa-truck"), |
| 110 | ("selling", _("Selling"), "fa fa-tag"), |
| 111 | ("buying", _("Buying"), "fa fa-shopping-cart"), |
| 112 | ("hr", _("Human Resources"), "fa fa-group"), |
| 113 | ("support", _("Support"), "fa fa-phone")): |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 114 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 115 | add_setup_section(data, "erpnext", module, label, icon) |
Anand Doshi | 0c4ef64 | 2014-03-04 11:15:08 +0530 | [diff] [blame] | 116 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 117 | return data |