blob: f3c0cecf624f81549ae227af7e2f0f04a416927a [file] [log] [blame]
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05301from frappe import _
Rushabh Mehtac0bb4532014-09-09 16:15:35 +05302from frappe.desk.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",
Rushabh Mehtac22e11d2014-06-05 13:17:45 +053035 "name": "Address Template",
36 "description": _("Country wise default Address Templates")
37 },
38 {
39 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053040 "name": "Terms and Conditions",
41 "description": _("Standard contract terms for Sales or Purchase.")
42 },
43 ]
44 },
45 {
46 "label": _("Customize"),
47 "icon": "icon-glass",
48 "items": [
49 {
50 "type": "doctype",
51 "name": "Features Setup",
52 "description": _("Show / Hide features like Serial Nos, POS etc.")
53 },
54 {
55 "type": "doctype",
56 "name": "Authorization Rule",
57 "description": _("Create rules to restrict transactions based on values.")
58 },
59 {
60 "type": "doctype",
61 "name": "Notification Control",
62 "label": _("Email Notifications"),
63 "description": _("Automatically compose message on submission of transactions.")
64 }
65 ]
66 },
67 {
68 "label": _("Email"),
69 "icon": "icon-envelope",
70 "items": [
71 {
72 "type": "doctype",
73 "name": "Email Digest",
74 "description": _("Create and manage daily, weekly and monthly email digests.")
75 },
76 {
77 "type": "doctype",
Nabin Haite7546e22014-05-28 16:25:54 +053078 "name": "SMS Settings",
79 "description": _("Setup SMS gateway settings")
80 },
Anand Doshi08ef4672014-05-08 11:43:18 +053081 ]
82 },
83 {
84 "label": _("Masters"),
85 "icon": "icon-star",
86 "items": [
87 {
88 "type": "doctype",
89 "name": "Company",
90 "description": _("Company (not Customer or Supplier) master.")
91 },
92 {
93 "type": "doctype",
94 "name": "Item",
95 "description": _("Item master.")
96 },
97 {
98 "type": "doctype",
99 "name": "Customer",
100 "description": _("Customer master.")
101 },
102 {
103 "type": "doctype",
104 "name": "Supplier",
105 "description": _("Supplier master.")
106 },
107 {
108 "type": "doctype",
109 "name": "Contact",
110 "description": _("Contact master.")
111 },
112 {
113 "type": "doctype",
114 "name": "Address",
115 "description": _("Address master.")
116 },
117 ]
118 },
119 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530120
Anand Doshif5794f12014-03-03 15:05:28 +0530121 for module, label, icon in (
122 ("accounts", _("Accounts"), "icon-money"),
123 ("stock", _("Stock"), "icon-truck"),
124 ("selling", _("Selling"), "icon-tag"),
125 ("buying", _("Buying"), "icon-shopping-cart"),
126 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530127 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530128
Anand Doshi08ef4672014-05-08 11:43:18 +0530129 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530130
Anand Doshi08ef4672014-05-08 11:43:18 +0530131 return data