Repository navigation
Expand file tree
/
Copy pathhooks.py
More file actions
131 lines (101 loc) · 3.06 KB
/
Copy pathhooks.py
File metadata and controls
131 lines (101 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "infinicserp"
app_title = "Infinics ERP"
app_publisher = "Infinics Limited"
app_description = "Infinics ERP - Used by more than 5000 companies across the world"
app_icon = "device-desktop"
app_color = "#6DAFC9"
app_email = "info@infinics.co.uk"
app_license = "Infinics Limited"
app_logo_url = '/assets/infinicserp/images/erp-logos/infinicserp-icon.svg'
website_context = {
"favicon": "/assets/infinicserp/images/erp-logos/favicon.png",
"splash_image": "/assets/infinicserp/images/erp-logos/infinicserp-icon.svg"
}
# Includes in <head>
# ------------------
# include js, css files in header of desk.html
app_include_css = "/assets/infinicserp/css/infinicserp.css"
#app_include_js = "/assets/infinicserp/js/infinicserp.js"
# include js, css files in header of web template
web_include_css = "/assets/infinicserp/css/infinicserp.css"
web_include_js = "/assets/infinicserp/js/infinicserp.js"
# include js in page
page_js = {"page" : "public/js/file.js"}
# include js in doctype views
doctype_js = {"doctype" : "public/js/doctype.js"}
doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
# Home Pages
# ----------
# application home page (will override Website Settings)
# home_page = "login"
# website user home page (by Role)
# role_home_page = {
# "Role": "home_page"
# }
# Website user home page (by function)
# get_website_user_home_page = "infinicserp.utils.get_home_page"
# Generators
# ----------
# automatically create page for each record of this doctype
# website_generators = ["Web Page"]
# Installation
# ------------
# before_install = "infinicserp.install.before_install"
# after_install = "infinicserp.install.after_install"
# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config
# notification_config = "infinicserp.notifications.get_notification_config"
# Permissions
# -----------
# Permissions evaluated in scripted ways
# permission_query_conditions = {
# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
# }
#
# has_permission = {
# "Event": "frappe.desk.doctype.event.event.has_permission",
# }
# Document Events
# ---------------
# Hook on document methods and events
# doc_events = {
# "*": {
# "on_update": "method",
# "on_cancel": "method",
# "on_trash": "method"
# }
# }
# Scheduled Tasks
# ---------------
# scheduler_events = {
# "all": [
# "infinicserp.tasks.all"
# ],
# "daily": [
# "infinicserp.tasks.daily"
# ],
# "hourly": [
# "infinicserp.tasks.hourly"
# ],
# "weekly": [
# "infinicserp.tasks.weekly"
# ]
# "monthly": [
# "infinicserp.tasks.monthly"
# ]
# }
# Testing
# -------
# before_tests = "infinicserp.install.before_tests"
# Overriding Whitelisted Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "infinicserp.event.get_events"
# }