blob: 6689dd78402ff8a901ee2779f3cd891fd948a579 [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
4data = [
5 {
Rushabh Mehta52e618d2014-04-17 18:48:59 +05306 "label": _("Settings"),
Anand Doshi64f2ccd2014-03-03 19:28:30 +05307 "icon": "icon-wrench",
8 "items": [
9 {
10 "type": "doctype",
11 "name": "Global Defaults",
12 "label": _("Global Settings"),
Rushabh Mehta52e618d2014-04-17 18:48:59 +053013 "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
Anand Doshi64f2ccd2014-03-03 19:28:30 +053014 "hide_count": True
15 }
16 ]
17 },
18 {
Rushabh Mehta7db71122014-04-03 15:04:18 +053019 "label": _("Printing and Branding"),
20 "icon": "icon-print",
21 "items": [
22 {
23 "type": "doctype",
24 "name": "Letter Head",
25 "description": _("Letter Heads for print templates.")
26 },
27 {
28 "type": "doctype",
29 "name": "Print Heading",
30 "description": _("Titles for print templates e.g. Proforma Invoice.")
31 },
32 {
33 "type": "doctype",
34 "name": "Terms and Conditions",
35 "description": _("Standard contract terms for Sales or Purchase.")
36 },
37 ]
38 },
39 {
Rushabh Mehtac4ec5342014-02-07 19:04:19 +053040 "label": _("Customize"),
41 "icon": "icon-glass",
42 "items": [
43 {
44 "type": "doctype",
45 "name": "Features Setup",
46 "description": _("Show / Hide features like Serial Nos, POS etc.")
47 },
48 {
49 "type": "doctype",
50 "name": "Authorization Rule",
51 "description": _("Create rules to restrict transactions based on values.")
52 },
53 {
54 "type": "doctype",
55 "name": "Notification Control",
56 "label": _("Email Notifications"),
57 "description": _("Automatically compose message on submission of transactions.")
58 }
59 ]
60 },
61 {
62 "label": _("Email"),
63 "icon": "icon-envelope",
64 "items": [
65 {
66 "type": "doctype",
67 "name": "Email Digest",
68 "description": _("Create and manage daily, weekly and monthly email digests.")
69 },
70 {
71 "type": "doctype",
Anand Doshie30511d2014-03-03 20:32:20 +053072 "name": "Support Email Settings",
Rushabh Mehtac4ec5342014-02-07 19:04:19 +053073 "description": _("Setup incoming server for support email id. (e.g. support@example.com)")
74 },
75 {
76 "type": "doctype",
77 "name": "Sales Email Settings",
78 "description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
79 },
80 {
81 "type": "doctype",
82 "name": "Jobs Email Settings",
83 "description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
84 },
85 ]
86 },
87 {
88 "label": _("Masters"),
89 "icon": "icon-star",
90 "items": [
91 {
92 "type": "doctype",
93 "name": "Company",
94 "description": _("Company (not Customer or Supplier) master.")
95 },
96 {
97 "type": "doctype",
98 "name": "Item",
99 "description": _("Item master.")
100 },
101 {
102 "type": "doctype",
103 "name": "Customer",
104 "description": _("Customer master.")
105 },
106 {
107 "type": "doctype",
108 "name": "Supplier",
109 "description": _("Supplier master.")
110 },
111 {
112 "type": "doctype",
113 "name": "Contact",
114 "description": _("Contact master.")
115 },
116 {
117 "type": "doctype",
118 "name": "Address",
119 "description": _("Address master.")
120 },
121 ]
122 },
Rushabh Mehtac4ec5342014-02-07 19:04:19 +0530123]
Anand Doshif5794f12014-03-03 15:05:28 +0530124
125def get_data():
126 out = list(data)
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530127
Anand Doshif5794f12014-03-03 15:05:28 +0530128 for module, label, icon in (
129 ("accounts", _("Accounts"), "icon-money"),
130 ("stock", _("Stock"), "icon-truck"),
131 ("selling", _("Selling"), "icon-tag"),
132 ("buying", _("Buying"), "icon-shopping-cart"),
133 ("hr", _("Human Resources"), "icon-group"),
Anand Doshi0c4ef642014-03-04 11:15:08 +0530134 ("support", _("Support"), "icon-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530135
Anand Doshi0c4ef642014-03-04 11:15:08 +0530136 add_setup_section(out, "erpnext", module, label, icon)
137
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530138 return out