blob: a33fd5390f40db1a6061e7ab37c3a2b7b1ce0ba0 [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05302from frappe import _
Rushabh Mehtac0bb4532014-09-09 16:15:35 +05303from frappe.desk.moduleview import add_setup_section
Rushabh Mehtac4ec5342014-02-07 19:04:19 +05304
Anand Doshif5794f12014-03-03 15:05:28 +05305def get_data():
Anand Doshi08ef4672014-05-08 11:43:18 +05306 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 Mehtaafbfdcf2014-12-30 18:09:40 +053021 "label": _("Printing"),
Anand Doshi08ef4672014-05-08 11:43:18 +053022 "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 Mehtac22e11d2014-06-05 13:17:45 +053036 "name": "Address Template",
37 "description": _("Country wise default Address Templates")
38 },
39 {
40 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053041 "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 Haite7546e22014-05-28 16:25:54 +053079 "name": "SMS Settings",
80 "description": _("Setup SMS gateway settings")
81 },
Anand Doshi08ef4672014-05-08 11:43:18 +053082 ]
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 Mehta52e618d2014-04-17 18:48:59 +0530121
Anand Doshif5794f12014-03-03 15:05:28 +0530122 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 Doshi0c4ef642014-03-04 11:15:08 +0530128 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530129
Anand Doshi08ef4672014-05-08 11:43:18 +0530130 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530131
Anand Doshi08ef4672014-05-08 11:43:18 +0530132 return data