blob: 66b44e28c58575bd2ee2a845c657e7c65ca28064 [file] [log] [blame]
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05301from frappe import _
Anand Doshi0c4ef642014-03-04 11:15:08 +05302from frappe.widgets.moduleview import add_setup_section
Rushabh Mehtac4ec5342014-02-07 19:04:19 +05303
Anand Doshif5794f12014-03-03 15:05:28 +05304def get_data():
Anand Doshi08ef4672014-05-08 11:43:18 +05305 data = [
6 {
7 "label": _("Settings"),
8 "icon": "icon-wrench",
9 "items": [
10 {
11 "type": "doctype",
12 "name": "Global Defaults",
13 "label": _("Global Settings"),
14 "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
15 "hide_count": True
16 }
17 ]
18 },
19 {
20 "label": _("Printing and Branding"),
21 "icon": "icon-print",
22 "items": [
23 {
24 "type": "doctype",
25 "name": "Letter Head",
26 "description": _("Letter Heads for print templates.")
27 },
28 {
29 "type": "doctype",
30 "name": "Print Heading",
31 "description": _("Titles for print templates e.g. Proforma Invoice.")
32 },
33 {
34 "type": "doctype",
35 "name": "Terms and Conditions",
36 "description": _("Standard contract terms for Sales or Purchase.")
37 },
38 ]
39 },
40 {
41 "label": _("Customize"),
42 "icon": "icon-glass",
43 "items": [
44 {
45 "type": "doctype",
46 "name": "Features Setup",
47 "description": _("Show / Hide features like Serial Nos, POS etc.")
48 },
49 {
50 "type": "doctype",
51 "name": "Authorization Rule",
52 "description": _("Create rules to restrict transactions based on values.")
53 },
54 {
55 "type": "doctype",
56 "name": "Notification Control",
57 "label": _("Email Notifications"),
58 "description": _("Automatically compose message on submission of transactions.")
59 }
60 ]
61 },
62 {
63 "label": _("Email"),
64 "icon": "icon-envelope",
65 "items": [
66 {
67 "type": "doctype",
68 "name": "Email Digest",
69 "description": _("Create and manage daily, weekly and monthly email digests.")
70 },
71 {
72 "type": "doctype",
73 "name": "Support Email Settings",
74 "description": _("Setup incoming server for support email id. (e.g. support@example.com)")
75 },
76 {
77 "type": "doctype",
78 "name": "Sales Email Settings",
79 "description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
80 },
81 {
82 "type": "doctype",
83 "name": "Jobs Email Settings",
84 "description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
85 },
Nabin Haite7546e22014-05-28 16:25:54 +053086 {
87 "type": "doctype",
88 "name": "SMS Settings",
89 "description": _("Setup SMS gateway settings")
90 },
Anand Doshi08ef4672014-05-08 11:43:18 +053091 ]
92 },
93 {
94 "label": _("Masters"),
95 "icon": "icon-star",
96 "items": [
97 {
98 "type": "doctype",
99 "name": "Company",
100 "description": _("Company (not Customer or Supplier) master.")
101 },
102 {
103 "type": "doctype",
104 "name": "Item",
105 "description": _("Item master.")
106 },
107 {
108 "type": "doctype",
109 "name": "Customer",
110 "description": _("Customer master.")
111 },
112 {
113 "type": "doctype",
114 "name": "Supplier",
115 "description": _("Supplier master.")
116 },
117 {
118 "type": "doctype",
119 "name": "Contact",
120 "description": _("Contact master.")
121 },
122 {
123 "type": "doctype",
124 "name": "Address",
125 "description": _("Address master.")
126 },
127 ]
128 },
129 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530130
Anand Doshif5794f12014-03-03 15:05:28 +0530131 for module, label, icon in (
132 ("accounts", _("Accounts"), "icon-money"),
133 ("stock", _("Stock"), "icon-truck"),
134 ("selling", _("Selling"), "icon-tag"),
135 ("buying", _("Buying"), "icon-shopping-cart"),
136 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530137 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530138
Anand Doshi08ef4672014-05-08 11:43:18 +0530139 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530140
Anand Doshi08ef4672014-05-08 11:43:18 +0530141 return data