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"), |
| 9 | "icon": "icon-wrench", |
| 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"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 22 | "icon": "icon-print", |
| 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 | { |
| 47 | "label": _("Customize"), |
| 48 | "icon": "icon-glass", |
| 49 | "items": [ |
| 50 | { |
| 51 | "type": "doctype", |
| 52 | "name": "Features Setup", |
| 53 | "description": _("Show / Hide features like Serial Nos, POS etc.") |
| 54 | }, |
| 55 | { |
| 56 | "type": "doctype", |
| 57 | "name": "Authorization Rule", |
| 58 | "description": _("Create rules to restrict transactions based on values.") |
| 59 | }, |
| 60 | { |
| 61 | "type": "doctype", |
| 62 | "name": "Notification Control", |
| 63 | "label": _("Email Notifications"), |
| 64 | "description": _("Automatically compose message on submission of transactions.") |
| 65 | } |
| 66 | ] |
| 67 | }, |
| 68 | { |
| 69 | "label": _("Email"), |
| 70 | "icon": "icon-envelope", |
| 71 | "items": [ |
| 72 | { |
| 73 | "type": "doctype", |
| 74 | "name": "Email Digest", |
| 75 | "description": _("Create and manage daily, weekly and monthly email digests.") |
| 76 | }, |
| 77 | { |
| 78 | "type": "doctype", |
Nabin Hait | e7546e2 | 2014-05-28 16:25:54 +0530 | [diff] [blame] | 79 | "name": "SMS Settings", |
| 80 | "description": _("Setup SMS gateway settings") |
| 81 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 82 | ] |
| 83 | }, |
| 84 | { |
| 85 | "label": _("Masters"), |
| 86 | "icon": "icon-star", |
| 87 | "items": [ |
| 88 | { |
| 89 | "type": "doctype", |
| 90 | "name": "Company", |
| 91 | "description": _("Company (not Customer or Supplier) master.") |
| 92 | }, |
| 93 | { |
| 94 | "type": "doctype", |
| 95 | "name": "Item", |
| 96 | "description": _("Item master.") |
| 97 | }, |
| 98 | { |
| 99 | "type": "doctype", |
| 100 | "name": "Customer", |
| 101 | "description": _("Customer master.") |
| 102 | }, |
| 103 | { |
| 104 | "type": "doctype", |
| 105 | "name": "Supplier", |
| 106 | "description": _("Supplier master.") |
| 107 | }, |
| 108 | { |
| 109 | "type": "doctype", |
| 110 | "name": "Contact", |
| 111 | "description": _("Contact master.") |
| 112 | }, |
| 113 | { |
| 114 | "type": "doctype", |
| 115 | "name": "Address", |
| 116 | "description": _("Address master.") |
| 117 | }, |
| 118 | ] |
| 119 | }, |
| 120 | ] |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 121 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 122 | for module, label, icon in ( |
| 123 | ("accounts", _("Accounts"), "icon-money"), |
| 124 | ("stock", _("Stock"), "icon-truck"), |
| 125 | ("selling", _("Selling"), "icon-tag"), |
| 126 | ("buying", _("Buying"), "icon-shopping-cart"), |
| 127 | ("hr", _("Human Resources"), "icon-group"), |
Anand Doshi | 0c4ef64 | 2014-03-04 11:15:08 +0530 | [diff] [blame] | 128 | ("support", _("Support"), "icon-phone")): |
Rushabh Mehta | 52e618d | 2014-04-17 18:48:59 +0530 | [diff] [blame] | 129 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 130 | add_setup_section(data, "erpnext", module, label, icon) |
Anand Doshi | 0c4ef64 | 2014-03-04 11:15:08 +0530 | [diff] [blame] | 131 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 132 | return data |