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", |
| 14 | "label": _("Global Settings"), |
| 15 | "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."), |
| 16 | "hide_count": True |
| 17 | } |
| 18 | ] |
| 19 | }, |
| 20 | { |
Rushabh Mehta | afbfdcf | 2014-12-30 18:09:40 +0530 | [diff] [blame] | 21 | "label": _("Printing"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 22 | "icon": "fa fa-print", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 23 | "items": [ |
| 24 | { |
| 25 | "type": "doctype", |
| 26 | "name": "Letter Head", |
| 27 | "description": _("Letter Heads for print templates.") |
| 28 | }, |
| 29 | { |
| 30 | "type": "doctype", |
| 31 | "name": "Print Heading", |
| 32 | "description": _("Titles for print templates e.g. Proforma Invoice.") |
| 33 | }, |
| 34 | { |
| 35 | "type": "doctype", |
Rushabh Mehta | c22e11d | 2014-06-05 13:17:45 +0530 | [diff] [blame] | 36 | "name": "Address Template", |
| 37 | "description": _("Country wise default Address Templates") |
| 38 | }, |
| 39 | { |
| 40 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 41 | "name": "Terms and Conditions", |
| 42 | "description": _("Standard contract terms for Sales or Purchase.") |
| 43 | }, |
| 44 | ] |
| 45 | }, |
| 46 | { |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 47 | "label": _("Help"), |
| 48 | "items": [ |
| 49 | { |
| 50 | "type": "help", |
| 51 | "name": _("Data Import and Export"), |
| 52 | "youtube_id": "6wiriRKPhmg" |
| 53 | }, |
| 54 | { |
| 55 | "type": "help", |
| 56 | "label": _("Setting up Email"), |
| 57 | "youtube_id": "YFYe0DrB95o" |
| 58 | }, |
| 59 | { |
| 60 | "type": "help", |
| 61 | "label": _("Printing and Branding"), |
| 62 | "youtube_id": "cKZHcx1znMc" |
| 63 | }, |
| 64 | { |
| 65 | "type": "help", |
| 66 | "label": _("Users and Permissions"), |
| 67 | "youtube_id": "fnBoRhBrwR4" |
| 68 | }, |
| 69 | { |
| 70 | "type": "help", |
| 71 | "label": _("Workflow"), |
| 72 | "youtube_id": "yObJUg9FxFs" |
| 73 | }, |
| 74 | ] |
| 75 | }, |
| 76 | { |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 77 | "label": _("Customize"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 78 | "icon": "fa fa-glass", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 79 | "items": [ |
| 80 | { |
| 81 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 82 | "name": "Authorization Rule", |
| 83 | "description": _("Create rules to restrict transactions based on values.") |
| 84 | }, |
| 85 | { |
| 86 | "type": "doctype", |
| 87 | "name": "Notification Control", |
| 88 | "label": _("Email Notifications"), |
| 89 | "description": _("Automatically compose message on submission of transactions.") |
| 90 | } |
| 91 | ] |
| 92 | }, |
| 93 | { |
| 94 | "label": _("Email"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 95 | "icon": "fa fa-envelope", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 96 | "items": [ |
| 97 | { |
| 98 | "type": "doctype", |
mbauskar | 298acd3 | 2017-02-01 18:25:21 +0530 | [diff] [blame] | 99 | "name": "Feedback Trigger", |
| 100 | "label": _("Feedback Trigger"), |
| 101 | "description": _("Automatically triggers the feedback request based on conditions.") |
| 102 | }, |
| 103 | { |
| 104 | "type": "doctype", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 105 | "name": "Email Digest", |
| 106 | "description": _("Create and manage daily, weekly and monthly email digests.") |
| 107 | }, |
| 108 | { |
| 109 | "type": "doctype", |
Nabin Hait | e7546e2 | 2014-05-28 16:25:54 +0530 | [diff] [blame] | 110 | "name": "SMS Settings", |
| 111 | "description": _("Setup SMS gateway settings") |
| 112 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 113 | ] |
Rushabh Mehta | 7278c0a | 2015-07-03 12:21:50 +0530 | [diff] [blame] | 114 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 115 | ] |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 116 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 117 | for module, label, icon in ( |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 118 | ("accounts", _("Accounts"), "fa fa-money"), |
| 119 | ("stock", _("Stock"), "fa fa-truck"), |
| 120 | ("selling", _("Selling"), "fa fa-tag"), |
| 121 | ("buying", _("Buying"), "fa fa-shopping-cart"), |
| 122 | ("hr", _("Human Resources"), "fa fa-group"), |
| 123 | ("support", _("Support"), "fa fa-phone")): |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 124 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 125 | add_setup_section(data, "erpnext", module, label, icon) |
Anand Doshi | 0c4ef64 | 2014-03-04 11:15:08 +0530 | [diff] [blame] | 126 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 127 | return data |