blob: 323683a3e6d70341521f11de43fe582c3c910e70 [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"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +05309 "icon": "fa fa-wrench",
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
13 "name": "Global Defaults",
Prateeksha Singh01a045a2019-02-11 14:00:48 +053014 "label": _("ERPNext Settings"),
Anand Doshi08ef4672014-05-08 11:43:18 +053015 "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
Prateeksha Singh34234072019-02-07 09:18:24 +053016 "hide_count": True,
Prateeksha Singh8aa45942019-03-04 14:00:02 +053017 "settings": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053018 }
19 ]
20 },
21 {
Rushabh Mehtaafbfdcf2014-12-30 18:09:40 +053022 "label": _("Printing"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053023 "icon": "fa fa-print",
Anand Doshi08ef4672014-05-08 11:43:18 +053024 "items": [
25 {
26 "type": "doctype",
27 "name": "Letter Head",
Prateeksha Singh34234072019-02-07 09:18:24 +053028 "description": _("Letter Heads for print templates."),
29 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053030 },
31 {
32 "type": "doctype",
33 "name": "Print Heading",
34 "description": _("Titles for print templates e.g. Proforma Invoice.")
35 },
36 {
37 "type": "doctype",
Rushabh Mehtac22e11d2014-06-05 13:17:45 +053038 "name": "Address Template",
39 "description": _("Country wise default Address Templates")
40 },
41 {
42 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053043 "name": "Terms and Conditions",
44 "description": _("Standard contract terms for Sales or Purchase.")
45 },
46 ]
47 },
48 {
Rushabh Mehta67712402015-05-25 18:30:53 +053049 "label": _("Help"),
50 "items": [
51 {
52 "type": "help",
53 "name": _("Data Import and Export"),
54 "youtube_id": "6wiriRKPhmg"
55 },
56 {
57 "type": "help",
58 "label": _("Setting up Email"),
59 "youtube_id": "YFYe0DrB95o"
60 },
61 {
62 "type": "help",
63 "label": _("Printing and Branding"),
64 "youtube_id": "cKZHcx1znMc"
65 },
66 {
67 "type": "help",
68 "label": _("Users and Permissions"),
Nabin Hait5e85ab32018-11-12 16:46:12 +053069 "youtube_id": "8Slw1hsTmUI"
Rushabh Mehta67712402015-05-25 18:30:53 +053070 },
71 {
72 "type": "help",
73 "label": _("Workflow"),
74 "youtube_id": "yObJUg9FxFs"
75 },
76 ]
77 },
78 {
Anand Doshi08ef4672014-05-08 11:43:18 +053079 "label": _("Customize"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053080 "icon": "fa fa-glass",
Anand Doshi08ef4672014-05-08 11:43:18 +053081 "items": [
82 {
83 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053084 "name": "Authorization Rule",
85 "description": _("Create rules to restrict transactions based on values.")
Anand Doshi08ef4672014-05-08 11:43:18 +053086 }
87 ]
88 },
89 {
90 "label": _("Email"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +053091 "icon": "fa fa-envelope",
Anand Doshi08ef4672014-05-08 11:43:18 +053092 "items": [
93 {
94 "type": "doctype",
95 "name": "Email Digest",
96 "description": _("Create and manage daily, weekly and monthly email digests.")
97 },
98 {
99 "type": "doctype",
Nabin Haite7546e22014-05-28 16:25:54 +0530100 "name": "SMS Settings",
101 "description": _("Setup SMS gateway settings")
102 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530103 ]
Rushabh Mehta7278c0a2015-07-03 12:21:50 +0530104 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530105 ]
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530106
Anand Doshif5794f12014-03-03 15:05:28 +0530107 for module, label, icon in (
Suraj Shetty242b16f2018-12-24 15:47:23 +0530108 ("accounts", _("Accounting"), "fa fa-money"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530109 ("stock", _("Stock"), "fa fa-truck"),
110 ("selling", _("Selling"), "fa fa-tag"),
111 ("buying", _("Buying"), "fa fa-shopping-cart"),
112 ("hr", _("Human Resources"), "fa fa-group"),
113 ("support", _("Support"), "fa fa-phone")):
Rushabh Mehta52e618d2014-04-17 18:48:59 +0530114
Anand Doshi08ef4672014-05-08 11:43:18 +0530115 add_setup_section(data, "erpnext", module, label, icon)
Anand Doshi0c4ef642014-03-04 11:15:08 +0530116
Anand Doshi08ef4672014-05-08 11:43:18 +0530117 return data