blob: e538de5ab3f4949dca94d0d4da188a2f60ff694b [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 },
86 ]
87 },
88 {
89 "label": _("Masters"),
90 "icon": "icon-star",
91 "items": [
92 {
93 "type": "doctype",
94 "name": "Company",
95 "description": _("Company (not Customer or Supplier) master.")
96 },
97 {
98 "type": "doctype",
99 "name": "Item",
100 "description": _("Item master.")
101 },
102 {
103 "type": "doctype",
104 "name": "Customer",
105 "description": _("Customer master.")
106 },
107 {
108 "type": "doctype",
109 "name": "Supplier",
110 "description": _("Supplier master.")
111 },
112 {
113 "type": "doctype",
114 "name": "Contact",
115 "description": _("Contact master.")
116 },
117 {
118 "type": "doctype",
119 "name": "Address",
120 "description": _("Address master.")
121 },
122 ]
123 },
124 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530125
Anand Doshif5794f12014-03-03 15:05:28 +0530126 for module, label, icon in (
127 ("accounts", _("Accounts"), "icon-money"),
128 ("stock", _("Stock"), "icon-truck"),
129 ("selling", _("Selling"), "icon-tag"),
130 ("buying", _("Buying"), "icon-shopping-cart"),
131 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530132 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530133
Anand Doshi08ef4672014-05-08 11:43:18 +0530134 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530135
Anand Doshi08ef4672014-05-08 11:43:18 +0530136 return data