blob: fe0a89a27690ed1af4642ba9783ddb1829dd59e8 [file] [log] [blame]
Rushabh Mehta156ce602015-09-11 18:49:59 +05301from frappe import _
2
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05303app_name = "erpnext"
4app_title = "ERPNext"
Rushabh Mehtaba02ce62015-07-22 15:07:25 +05305app_publisher = "Frappe Technologies Pvt. Ltd."
Rushabh Mehtaedc8ab02015-11-18 16:48:19 +05306app_description = """ERP made simple"""
Rushabh Mehta2167ff52016-12-07 11:08:48 +05307app_icon = "fa fa-th"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05308app_color = "#e74c3c"
Nabin Hait7ba4d022015-11-05 16:55:10 +05309app_email = "info@erpnext.com"
10app_license = "GNU General Public License (v3)"
Rushabh Mehta7d23e422015-11-02 10:45:18 +053011source_link = "https://github.com/frappe/erpnext"
Shivam Mishra8261df22020-10-19 13:52:35 +053012app_logo_url = "/assets/erpnext/images/erpnext-logo.svg"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053013
scmmishra734d3e02018-11-03 18:03:35 +053014
Ankush Menat494bd9e2022-03-28 18:52:46 +053015develop_version = "13.x.x-develop"
Rushabh Mehtadb206f22017-03-10 09:38:58 +053016
Faris Ansari464d8382021-05-07 14:53:42 +053017app_include_js = "erpnext.bundle.js"
18app_include_css = "erpnext.bundle.css"
19web_include_js = "erpnext-web.bundle.js"
20web_include_css = "erpnext-web.bundle.css"
Suraj Shetty815aad12021-05-23 13:31:54 +053021email_css = "email_erpnext.bundle.css"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053022
mbauskarf54b1042017-03-13 16:32:46 +053023doctype_js = {
Abhishek Balam346ca562020-10-14 18:11:04 +053024 "Address": "public/js/address.js",
mbauskarf54b1042017-03-13 16:32:46 +053025 "Communication": "public/js/communication.js",
Faris Ansari5f8b3582019-03-19 11:48:32 +053026 "Event": "public/js/event.js",
Noah Jacobcbddeda2021-07-26 12:54:35 +053027 "Newsletter": "public/js/newsletter.js",
Ankush Menat494bd9e2022-03-28 18:52:46 +053028 "Contact": "public/js/contact.js",
mbauskarf54b1042017-03-13 16:32:46 +053029}
30
Ankush Menat494bd9e2022-03-28 18:52:46 +053031override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
Abhishek Balam6e9e7b42020-10-14 19:31:37 +053032
Neil Trini Lasrado771fbb82018-08-24 15:15:56 +053033welcome_email = "erpnext.setup.utils.welcome_email"
34
Rushabh Mehta37b4d752015-11-09 16:53:11 +053035# setup wizard
36setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
Prateeksha Singh8b0b56d2017-12-21 11:55:58 +053037setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
Prateeksha Singh95d8fd32017-09-04 11:14:04 +053038setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test"
Rushabh Mehta37b4d752015-11-09 16:53:11 +053039
Rushabh Mehtad55bdcf2015-12-31 11:12:48 +053040before_install = "erpnext.setup.install.check_setup_wizard_not_completed"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053041after_install = "erpnext.setup.install.after_install"
42
43boot_session = "erpnext.startup.boot.boot_session"
44notification_config = "erpnext.startup.notifications.get_notification_config"
Rushabh Mehta05ce7ec2017-02-22 16:15:43 +053045get_help_messages = "erpnext.utilities.activation.get_help_messages"
prssanna3f1444e2019-09-24 13:04:53 +053046leaderboards = "erpnext.startup.leaderboard.get_leaderboards"
Prssanna Desai82ddef52020-06-18 18:18:41 +053047filters_config = "erpnext.startup.filters.get_filters_config"
prssannab57b3c92020-10-22 15:37:47 +053048additional_print_settings = "erpnext.controllers.print_settings.get_print_settings"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053049
Faris Ansari38ac7f72019-10-09 11:41:33 +053050on_session_creation = [
51 "erpnext.portal.utils.create_customer_or_supplier",
Ankush Menat494bd9e2022-03-28 18:52:46 +053052 "erpnext.e_commerce.shopping_cart.utils.set_cart_count",
Faris Ansari38ac7f72019-10-09 11:41:33 +053053]
marination22f41a12021-02-25 13:56:38 +053054on_logout = "erpnext.e_commerce.shopping_cart.utils.clear_cart_count"
Anand Doshif9fc04c2015-02-23 22:14:12 +053055
Ankush Menat494bd9e2022-03-28 18:52:46 +053056treeviews = [
57 "Account",
58 "Cost Center",
59 "Warehouse",
60 "Item Group",
61 "Customer Group",
Deepesh Garg0a67b022022-04-16 19:43:59 +053062 "Supplier Group",
Ankush Menat494bd9e2022-03-28 18:52:46 +053063 "Sales Person",
64 "Territory",
65 "Assessment Group",
66 "Department",
67]
Rushabh Mehta764aa922016-05-02 13:28:46 +053068
Anand Doshif9fc04c2015-02-23 22:14:12 +053069# website
Ankush Menat494bd9e2022-03-28 18:52:46 +053070update_website_context = [
71 "erpnext.e_commerce.shopping_cart.utils.update_website_context",
72 "erpnext.education.doctype.education_settings.education_settings.update_website_context",
73]
marination22f41a12021-02-25 13:56:38 +053074my_account_context = "erpnext.e_commerce.shopping_cart.utils.update_my_account_context"
Shariq Ansari9aa6f522021-09-14 12:49:08 +053075webform_list_context = "erpnext.controllers.website_list_for_contact.get_webform_list_context"
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053076
Ankush Menat494bd9e2022-03-28 18:52:46 +053077calendars = [
78 "Task",
79 "Work Order",
80 "Leave Application",
81 "Sales Order",
82 "Holiday List",
83 "Course Schedule",
84]
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053085
Rushabh Mehtabc4e2cd2017-10-17 12:30:34 +053086domains = {
Ankush Menat494bd9e2022-03-28 18:52:46 +053087 "Distribution": "erpnext.domains.distribution",
88 "Education": "erpnext.domains.education",
89 "Manufacturing": "erpnext.domains.manufacturing",
90 "Retail": "erpnext.domains.retail",
91 "Services": "erpnext.domains.services",
Rushabh Mehtabc4e2cd2017-10-17 12:30:34 +053092}
93
Ankush Menat494bd9e2022-03-28 18:52:46 +053094website_generators = [
95 "Item Group",
96 "Website Item",
97 "BOM",
98 "Sales Partner",
99 "Job Opening",
100 "Student Admission",
101]
Rushabh Mehta621d6ea2015-07-08 12:39:27 +0530102
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +0530103website_context = {
Rucha Mahabal01bea142021-10-04 09:58:38 +0530104 "favicon": "/assets/erpnext/images/erpnext-favicon.svg",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530105 "splash_image": "/assets/erpnext/images/erpnext-logo.svg",
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +0530106}
107
Anand Doshif9fc04c2015-02-23 22:14:12 +0530108website_route_rules = [
109 {"from_route": "/orders", "to_route": "Sales Order"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530110 {
111 "from_route": "/orders/<path:name>",
112 "to_route": "order",
113 "defaults": {"doctype": "Sales Order", "parents": [{"label": _("Orders"), "route": "orders"}]},
Rushabh Mehta156ce602015-09-11 18:49:59 +0530114 },
Anand Doshif9fc04c2015-02-23 22:14:12 +0530115 {"from_route": "/invoices", "to_route": "Sales Invoice"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530116 {
117 "from_route": "/invoices/<path:name>",
118 "to_route": "order",
Rushabh Mehta156ce602015-09-11 18:49:59 +0530119 "defaults": {
120 "doctype": "Sales Invoice",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530121 "parents": [{"label": _("Invoices"), "route": "invoices"}],
122 },
Rushabh Mehta156ce602015-09-11 18:49:59 +0530123 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530124 {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530125 {
126 "from_route": "/supplier-quotations/<path:name>",
127 "to_route": "order",
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530128 "defaults": {
129 "doctype": "Supplier Quotation",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530130 "parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}],
131 },
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530132 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530133 {"from_route": "/purchase-orders", "to_route": "Purchase Order"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530134 {
135 "from_route": "/purchase-orders/<path:name>",
136 "to_route": "order",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530137 "defaults": {
138 "doctype": "Purchase Order",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530139 "parents": [{"label": _("Purchase Order"), "route": "purchase-orders"}],
140 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530141 },
142 {"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530143 {
144 "from_route": "/purchase-invoices/<path:name>",
145 "to_route": "order",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530146 "defaults": {
147 "doctype": "Purchase Invoice",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530148 "parents": [{"label": _("Purchase Invoice"), "route": "purchase-invoices"}],
149 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530150 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530151 {"from_route": "/quotations", "to_route": "Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530152 {
153 "from_route": "/quotations/<path:name>",
154 "to_route": "order",
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530155 "defaults": {
156 "doctype": "Quotation",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530157 "parents": [{"label": _("Quotations"), "route": "quotations"}],
158 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530159 },
Anand Doshif9fc04c2015-02-23 22:14:12 +0530160 {"from_route": "/shipments", "to_route": "Delivery Note"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530161 {
162 "from_route": "/shipments/<path:name>",
163 "to_route": "order",
Rushabh Mehta156ce602015-09-11 18:49:59 +0530164 "defaults": {
Anand Doshi4b127402015-11-26 18:22:03 +0530165 "doctype": "Delivery Note",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530166 "parents": [{"label": _("Shipments"), "route": "shipments"}],
167 },
Kanchan Chauhan2e8cc892016-02-19 17:27:23 +0530168 },
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530169 {"from_route": "/rfq", "to_route": "Request for Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530170 {
171 "from_route": "/rfq/<path:name>",
172 "to_route": "rfq",
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530173 "defaults": {
174 "doctype": "Request for Quotation",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530175 "parents": [{"label": _("Request for Quotation"), "route": "rfq"}],
176 },
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530177 },
Kanchan Chauhan1605ff02016-07-04 14:28:09 +0530178 {"from_route": "/addresses", "to_route": "Address"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530179 {
180 "from_route": "/addresses/<path:name>",
181 "to_route": "addresses",
182 "defaults": {"doctype": "Address", "parents": [{"label": _("Addresses"), "route": "addresses"}]},
Kanchan Chauhan1605ff02016-07-04 14:28:09 +0530183 },
Kanchan Chauhan2e8cc892016-02-19 17:27:23 +0530184 {"from_route": "/jobs", "to_route": "Job Opening"},
Neil Trini Lasrado83d81202016-09-15 14:48:13 +0530185 {"from_route": "/admissions", "to_route": "Student Admission"},
Vishal Dhayagudeedb27492017-07-25 10:53:12 +0530186 {"from_route": "/boms", "to_route": "BOM"},
187 {"from_route": "/timesheets", "to_route": "Timesheet"},
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800188 {"from_route": "/material-requests", "to_route": "Material Request"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530189 {
190 "from_route": "/material-requests/<path:name>",
191 "to_route": "material_request_info",
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800192 "defaults": {
193 "doctype": "Material Request",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530194 "parents": [{"label": _("Material Request"), "route": "material-requests"}],
195 },
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800196 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530197 {"from_route": "/project", "to_route": "Project"},
Anand Doshif9fc04c2015-02-23 22:14:12 +0530198]
199
Rushabh Mehtab9cdb052017-03-08 12:33:43 +0530200standard_portal_menu_items = [
Rushabh Mehta0c76f212016-04-01 11:53:50 +0530201 {"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530202 {
203 "title": _("Request for Quotations"),
204 "route": "/rfq",
205 "reference_doctype": "Request for Quotation",
206 "role": "Supplier",
207 },
208 {
209 "title": _("Supplier Quotation"),
210 "route": "/supplier-quotations",
211 "reference_doctype": "Supplier Quotation",
212 "role": "Supplier",
213 },
214 {
215 "title": _("Purchase Orders"),
216 "route": "/purchase-orders",
217 "reference_doctype": "Purchase Order",
218 "role": "Supplier",
219 },
220 {
221 "title": _("Purchase Invoices"),
222 "route": "/purchase-invoices",
223 "reference_doctype": "Purchase Invoice",
224 "role": "Supplier",
225 },
226 {
227 "title": _("Quotations"),
228 "route": "/quotations",
229 "reference_doctype": "Quotation",
230 "role": "Customer",
231 },
232 {
233 "title": _("Orders"),
234 "route": "/orders",
235 "reference_doctype": "Sales Order",
236 "role": "Customer",
237 },
238 {
239 "title": _("Invoices"),
240 "route": "/invoices",
241 "reference_doctype": "Sales Invoice",
242 "role": "Customer",
243 },
244 {
245 "title": _("Shipments"),
246 "route": "/shipments",
247 "reference_doctype": "Delivery Note",
248 "role": "Customer",
249 },
250 {"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role": "Customer"},
Neil Trini Lasrado3f0a5812016-07-19 14:17:33 +0530251 {"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530252 {
253 "title": _("Timesheets"),
254 "route": "/timesheets",
255 "reference_doctype": "Timesheet",
256 "role": "Customer",
257 },
258 {"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role": "Student"},
Manas Solanki05180012017-10-05 14:31:31 +0530259 {"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530260 {
261 "title": _("Admission"),
262 "route": "/admissions",
263 "reference_doctype": "Student Admission",
264 "role": "Student",
265 },
266 {
267 "title": _("Material Request"),
268 "route": "/material-requests",
269 "reference_doctype": "Material Request",
270 "role": "Customer",
271 },
0Pranav5f5c7252019-12-18 16:21:50 +0530272 {"title": _("Appointment Booking"), "route": "/book_appointment"},
Rushabh Mehtafc800b32016-09-23 21:51:51 +0530273]
274
275default_roles = [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530276 {"role": "Customer", "doctype": "Contact", "email_field": "email_id"},
277 {"role": "Supplier", "doctype": "Contact", "email_field": "email_id"},
278 {"role": "Student", "doctype": "Student", "email_field": "student_email_id"},
Rushabh Mehtac78b3112016-03-30 12:29:48 +0530279]
280
Suraj Shettyf1ffdb32019-06-07 12:48:13 +0530281sounds = [
282 {"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2},
283 {"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2},
284]
285
Ankush Menat494bd9e2022-03-28 18:52:46 +0530286has_upload_permission = {"Employee": "erpnext.hr.doctype.employee.employee.has_upload_permission"}
shariquerik19893752021-03-26 16:34:22 +0530287
Anand Doshif9fc04c2015-02-23 22:14:12 +0530288has_website_permission = {
289 "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530290 "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
Anand Doshif9fc04c2015-02-23 22:14:12 +0530291 "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530292 "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530293 "Purchase Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
294 "Purchase Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800295 "Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission",
Rushabh Mehtaa33d4682015-06-01 17:15:42 +0530296 "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
Vishal Dhayagudeedb27492017-07-25 10:53:12 +0530297 "Issue": "erpnext.support.doctype.issue.issue.has_website_permission",
Rushabh Mehtaf0569742017-09-13 12:52:30 +0530298 "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission",
Anand Doshif9fc04c2015-02-23 22:14:12 +0530299}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530300
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530301dump_report_map = "erpnext.startup.report_data_map.data_map"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530302
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530303before_tests = "erpnext.setup.utils.before_tests"
304
Rushabh Mehta308e6ea2015-03-24 17:34:58 +0530305standard_queries = {
Jamsheerc0097ad2018-11-23 11:37:58 +0530306 "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list",
Rushabh Mehta308e6ea2015-03-24 17:34:58 +0530307}
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530308
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530309doc_events = {
Rucha Mahabalc91e03c2020-11-28 20:24:06 +0530310 "*": {
Himanshuec25d592021-06-14 19:05:52 +0530311 "validate": "erpnext.support.doctype.service_level_agreement.service_level_agreement.apply",
Rucha Mahabalc91e03c2020-11-28 20:24:06 +0530312 },
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530313 "Stock Entry": {
Nabin Hait4acd4312014-11-04 15:32:31 +0530314 "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530315 "on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
Anand Doshi648062d2014-05-05 16:46:14 +0530316 },
317 "User": {
KanchanChauhan1dc26b12017-06-13 15:26:35 +0530318 "after_insert": "frappe.contacts.doctype.contact.contact.update_contact",
Anand Doshi49856912014-05-28 18:49:13 +0530319 "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530320 "on_update": [
321 "erpnext.hr.doctype.employee.employee.update_user_permissions",
322 "erpnext.portal.utils.set_default_role",
323 ],
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530324 },
Himanshuec25d592021-06-14 19:05:52 +0530325 "Communication": {
Ganga Manojf4fc1382021-07-14 11:43:10 +0530326 "on_update": [
Saqib Ansaric1d88772021-12-06 14:34:59 +0530327 "erpnext.support.doctype.service_level_agreement.service_level_agreement.on_communication_update",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530328 "erpnext.support.doctype.issue.issue.set_first_response_time",
Ganga Manojf4fc1382021-07-14 11:43:10 +0530329 ]
Himanshuec25d592021-06-14 19:05:52 +0530330 },
marination45617ae2021-08-19 17:40:00 +0530331 "Sales Taxes and Charges Template": {
marinationeef9cf12021-02-16 18:45:36 +0530332 "on_update": "erpnext.e_commerce.doctype.e_commerce_settings.e_commerce_settings.validate_cart_settings"
Saurabhe4e89542016-07-21 20:26:46 +0530333 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530334 "Tax Category": {"validate": "erpnext.regional.india.utils.validate_tax_category"},
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100335 "Sales Invoice": {
vishdhad3ec1c12020-03-24 11:31:41 +0530336 "on_submit": [
337 "erpnext.regional.create_transaction_log",
338 "erpnext.regional.italy.utils.sales_invoice_on_submit",
Mohammed Redah9d319c22021-11-19 15:13:23 +0300339 "erpnext.regional.saudi_arabia.utils.create_qr_code",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530340 "erpnext.erpnext_integrations.taxjar_integration.create_transaction",
vishdhad3ec1c12020-03-24 11:31:41 +0530341 ],
342 "on_cancel": [
343 "erpnext.regional.italy.utils.sales_invoice_on_cancel",
Deepesh Garg43820402021-11-29 18:25:47 +0530344 "erpnext.erpnext_integrations.taxjar_integration.delete_transaction",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530345 "erpnext.regional.saudi_arabia.utils.delete_qr_code_file",
Ahmad940db712021-09-17 01:14:41 +0500346 ],
Deepesh Garg43820402021-11-29 18:25:47 +0530347 "on_trash": "erpnext.regional.check_deletion_permission",
Ankush Menat76c85212021-04-07 16:09:58 +0530348 "validate": [
Deepesh Gargc36e48a2021-04-12 10:55:43 +0530349 "erpnext.regional.india.utils.validate_document_name",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530350 "erpnext.regional.india.utils.update_taxable_values",
351 ],
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100352 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530353 "POS Invoice": {"on_submit": ["erpnext.regional.saudi_arabia.utils.create_qr_code"]},
Deepesh Garg24f9a802020-06-03 10:59:37 +0530354 "Purchase Invoice": {
hasnain28087b7a8e12020-09-09 20:54:30 +0530355 "validate": [
Deepesh Garg55fe85d2021-05-14 12:17:41 +0530356 "erpnext.regional.india.utils.validate_reverse_charge_transaction",
357 "erpnext.regional.india.utils.update_itc_availed_fields",
hasnain28087b7a8e12020-09-09 20:54:30 +0530358 "erpnext.regional.united_arab_emirates.utils.update_grand_total_for_rcm",
Deepesh Garg55fe85d2021-05-14 12:17:41 +0530359 "erpnext.regional.united_arab_emirates.utils.validate_returns",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530360 "erpnext.regional.india.utils.update_taxable_values",
Deepesh Garg55fe85d2021-05-14 12:17:41 +0530361 ]
Deepesh Garg24f9a802020-06-03 10:59:37 +0530362 },
Saurabhe4e89542016-07-21 20:26:46 +0530363 "Payment Entry": {
Deepesh Garg8b644d82021-07-15 15:36:54 +0530364 "validate": "erpnext.regional.india.utils.update_place_of_supply",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530365 "on_submit": [
366 "erpnext.regional.create_transaction_log",
367 "erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status",
368 "erpnext.accounts.doctype.dunning.dunning.resolve_dunning",
369 ],
370 "on_trash": "erpnext.regional.check_deletion_permission",
Rushabh Mehtab3c8f442017-06-21 17:22:38 +0530371 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530372 "Address": {
373 "validate": [
374 "erpnext.regional.india.utils.validate_gstin_for_india",
375 "erpnext.regional.italy.utils.set_state_code",
376 "erpnext.regional.india.utils.update_gst_category",
Rucha Mahabal212eb4b2021-08-30 13:10:18 +0530377 ],
Nabin Hait619c42b2018-01-10 17:48:03 +0530378 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530379 "Supplier": {"validate": "erpnext.regional.india.utils.validate_pan_for_india"},
380 (
381 "Sales Invoice",
382 "Sales Order",
383 "Delivery Note",
384 "Purchase Invoice",
385 "Purchase Order",
386 "Purchase Receipt",
387 ): {"validate": ["erpnext.regional.india.utils.set_place_of_supply"]},
Suraj Shettyd4edd282019-08-09 19:23:04 +0530388 "Contact": {
389 "on_trash": "erpnext.support.doctype.issue.issue.update_issue",
leela3234df52021-01-12 23:31:40 +0530390 "after_insert": "erpnext.telephony.doctype.call_log.call_log.link_existing_conversations",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530391 "validate": ["erpnext.crm.utils.update_lead_phone_numbers"],
Suraj Shettyd4edd282019-08-09 19:23:04 +0530392 },
Rucha Mahabal9e35bff2019-07-12 13:56:36 +0530393 "Email Unsubscribe": {
394 "after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient"
vishdhad3ec1c12020-03-24 11:31:41 +0530395 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530396 ("Quotation", "Sales Order", "Sales Invoice"): {
397 "validate": ["erpnext.erpnext_integrations.taxjar_integration.set_sales_tax"]
Deepesh Garg2b2572b2021-08-20 14:40:12 +0530398 },
399 "Company": {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530400 "on_trash": [
401 "erpnext.regional.india.utils.delete_gst_settings_for_company",
402 "erpnext.regional.saudi_arabia.utils.delete_vat_settings_for_company",
403 ]
Subin Tom798b4642021-09-03 12:30:57 +0530404 },
405 "Integration Request": {
406 "validate": "erpnext.accounts.doctype.payment_request.payment_request.validate_payment"
Ankush Menat494bd9e2022-03-28 18:52:46 +0530407 },
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530408}
409
vishaldcef7982020-01-13 12:59:52 +0530410# On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled.
411# to maintain data integrity we exempted payment entry. it will un-link when sales invoice get cancelled.
412# if payment entry not in auto cancel exempted doctypes it will cancel payment entry.
Ankush Menat494bd9e2022-03-28 18:52:46 +0530413auto_cancel_exempted_doctypes = [
Rucha Mahabal4887b692020-10-23 20:33:30 +0530414 "Payment Entry",
vishaldcef7982020-01-13 12:59:52 +0530415]
vishal70148a62019-12-02 17:37:46 +0530416
Rohit Waghchaurea8f78fa2021-04-13 18:43:57 +0530417after_migrate = ["erpnext.setup.install.update_select_perm_after_install"]
418
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530419scheduler_events = {
marination06ee0ea2020-09-07 18:49:06 +0530420 "cron": {
421 "0/30 * * * *": [
Gavin D'souza71ac3992020-09-10 13:57:44 +0530422 "erpnext.utilities.doctype.video.video.update_youtube_data",
marination06ee0ea2020-09-07 18:49:06 +0530423 ]
424 },
Rohit Waghchaure425dff92019-01-17 12:49:45 +0530425 "all": [
Rucha Mahabal5100e112020-02-24 22:08:45 +0530426 "erpnext.projects.doctype.project.project.project_status_update_reminder",
mergify[bot]b9942ad2021-10-01 13:15:40 +0530427 "erpnext.hr.doctype.interview.interview.send_interview_reminder",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530428 "erpnext.crm.doctype.social_media_post.social_media_post.process_scheduled_social_media_posts",
Rohit Waghchaure425dff92019-01-17 12:49:45 +0530429 ],
Nabin Hait75807232015-07-02 14:41:27 +0530430 "hourly": [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530431 "erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails",
Pawan Mehta6010a102018-09-05 17:16:57 +0530432 "erpnext.accounts.doctype.subscription.subscription.process_all",
Aditya Hase7bc692d2019-01-07 19:01:47 +0530433 "erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs",
Nabin Hait34c551d2019-07-03 10:34:31 +0530434 "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.automatic_synchronization",
Rohit Waghchaure425dff92019-01-17 12:49:45 +0530435 "erpnext.projects.doctype.project.project.hourly_reminder",
Himanshu Warekar6e6148b2019-05-10 23:49:42 +0530436 "erpnext.projects.doctype.project.project.collect_project_status",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530437 "erpnext.hr.doctype.shift_type.shift_type.process_auto_attendance_for_all_shifts",
Rohit Waghchaureb103b242021-05-27 17:05:36 +0530438 ],
439 "hourly_long": [
Mohammed Yusuf Shaikha3e69cf2022-02-08 01:00:37 +0530440 "erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530441 "erpnext.bulk_transaction.doctype.bulk_transaction_log.bulk_transaction_log.retry_failing_transaction",
Nabin Hait75807232015-07-02 14:41:27 +0530442 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530443 "daily": [
Rushabh Mehtaf8509872014-10-08 12:03:19 +0530444 "erpnext.stock.reorder_item.reorder_item",
Nabin Hait606af962014-12-15 11:57:03 +0530445 "erpnext.support.doctype.issue.issue.auto_close_tickets",
mbauskare1e25a02017-02-16 19:36:59 +0530446 "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity",
Rohit Waghchaure2f1db572016-11-08 12:39:33 +0530447 "erpnext.controllers.accounts_controller.update_invoice_status",
Rushabh Mehta5bceebc2015-01-23 15:22:13 +0530448 "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
Frappe PR Bot255b99e2021-08-24 20:19:22 +0530449 "erpnext.hr.doctype.employee.employee_reminders.send_work_anniversary_reminders",
450 "erpnext.hr.doctype.employee.employee_reminders.send_birthday_reminders",
Nabin Hait4fdb0522016-03-09 12:40:56 +0530451 "erpnext.projects.doctype.task.task.set_tasks_as_overdue",
Kanchan Chauhane58a41a2017-10-17 15:17:24 +0530452 "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries",
Suraj Shettyd3069fe2018-02-21 15:15:43 +0530453 "erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.send_summary",
Prateeksha Singhe012e242017-07-18 10:35:12 +0530454 "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status",
bcornwellmott96381da2017-07-24 10:12:30 -0700455 "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards",
Nabin Haitadbf8ad2017-07-31 20:45:36 +0530456 "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history",
Manas Solanki2f4e5ee2018-05-15 15:25:14 +0530457 "erpnext.assets.doctype.asset.asset.update_maintenance_status",
Rohan Bansalbf0f0aa2018-05-23 15:06:45 +0530458 "erpnext.assets.doctype.asset.asset.make_post_gl_entry",
Himanshu Mishra7aabef22018-06-28 23:43:23 +0530459 "erpnext.crm.doctype.contract.contract.update_status_for_contracts",
Himanshu0209ef02018-12-25 17:42:31 +0530460 "erpnext.projects.doctype.project.project.update_project_sales_billing",
Sagar Vora4d1a9b12019-01-22 15:56:39 +0530461 "erpnext.projects.doctype.project.project.send_project_status_email_to_users",
Himanshuf3e52132019-03-19 16:47:56 +0530462 "erpnext.quality_management.doctype.quality_review.quality_review.review",
Himanshu Warekarcf37e402019-05-07 10:27:01 +0530463 "erpnext.support.doctype.service_level_agreement.service_level_agreement.check_agreement_status",
Rucha Mahabalb54459e2019-07-22 03:23:40 +0530464 "erpnext.crm.doctype.email_campaign.email_campaign.send_email_to_leads_or_contacts",
0Pranav53b65ab2019-11-15 16:42:32 +0530465 "erpnext.crm.doctype.email_campaign.email_campaign.set_email_campaign_status",
marination81798042020-04-14 23:05:11 +0530466 "erpnext.selling.doctype.quotation.quotation.set_expired_status",
Abhishek Balamee5b9c72020-08-11 16:23:47 +0530467 "erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status",
Rucha Mahabalf1cca592021-01-21 16:36:15 +0530468 "erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_auto_email",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530469 "erpnext.hr.doctype.interview.interview.send_daily_feedback_reminder",
KanchanChauhan73bd3cb2018-09-05 11:01:35 +0530470 ],
471 "daily_long": [
Gavin D'souzad38f5372019-10-30 14:43:58 +0530472 "erpnext.setup.doctype.email_digest.email_digest.send",
marination4283a132022-03-16 19:45:03 +0530473 "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.auto_update_latest_price_in_all_boms",
Mangesh-Khairnarf281f002019-08-05 14:47:02 +0530474 "erpnext.hr.doctype.leave_ledger_entry.leave_ledger_entry.process_expired_allocation",
Deepesh Gargd1d0a502020-02-26 10:44:24 +0530475 "erpnext.hr.utils.generate_leave_encashment",
Anurag Mishra755b7732020-11-25 16:05:17 +0530476 "erpnext.hr.utils.allocate_earned_leaves",
Afshan5d66a2b2021-03-12 15:51:34 +0530477 "erpnext.loan_management.doctype.process_loan_security_shortfall.process_loan_security_shortfall.create_process_loan_security_shortfall",
478 "erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_term_loans",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530479 "erpnext.crm.doctype.lead.lead.daily_open_lead",
KanchanChauhan73bd3cb2018-09-05 11:01:35 +0530480 ],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530481 "weekly": ["erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_weekly"],
482 "monthly": ["erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_monthly"],
Nabin Haitb9b2a062019-05-01 12:49:44 +0530483 "monthly_long": [
Deepesh Gargde03d2c2020-06-01 11:30:34 +0530484 "erpnext.accounts.deferred_revenue.process_deferred_accounting",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530485 "erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans",
486 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530487}
Anand Doshi7f41ff22014-06-26 12:02:55 +0530488
Faris Ansari2c5b3e82017-07-13 18:37:18 +0530489email_brand_image = "assets/erpnext/images/erpnext-logo.jpg"
490
Faris Ansari40d3ad22017-07-31 16:16:22 +0530491default_mail_footer = """
492 <span>
493 Sent via
494 <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank">
495 ERPNext
496 </a>
497 </span>
498"""
Anand Doshic82331b2015-02-12 18:58:28 +0530499
500get_translated_dict = {
Anand Doshic82331b2015-02-12 18:58:28 +0530501 ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
502}
Rushabh Mehtafe027b32016-03-28 13:21:43 +0530503
504bot_parsers = [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530505 "erpnext.utilities.bot.FindItemBot",
Rushabh Mehta0c76f212016-04-01 11:53:50 +0530506]
Anand Doshif576f3b2016-06-25 19:51:48 +0530507
Ankush Menat494bd9e2022-03-28 18:52:46 +0530508get_site_info = "erpnext.utilities.get_site_info"
Saurabh94c666a2016-11-08 20:35:50 +0530509
Saurabh0d47d512017-03-14 14:46:05 +0530510payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
Rushabh Mehta7231f292017-07-13 15:00:56 +0530511
Himanshub84333f2020-04-14 13:02:03 +0530512communication_doctypes = ["Customer", "Supplier"]
513
Ankush Menat494bd9e2022-03-28 18:52:46 +0530514accounting_dimension_doctypes = [
515 "GL Entry",
516 "Sales Invoice",
517 "Purchase Invoice",
518 "Payment Entry",
519 "Asset",
520 "Expense Claim",
521 "Expense Claim Detail",
522 "Expense Taxes and Charges",
523 "Stock Entry",
524 "Budget",
525 "Payroll Entry",
526 "Delivery Note",
527 "Sales Invoice Item",
528 "Purchase Invoice Item",
529 "Purchase Order Item",
530 "Journal Entry Account",
531 "Material Request Item",
532 "Delivery Note Item",
533 "Purchase Receipt Item",
534 "Stock Entry Detail",
535 "Payment Entry Deduction",
536 "Sales Taxes and Charges",
537 "Purchase Taxes and Charges",
538 "Shipping Rule",
539 "Landed Cost Item",
540 "Asset Value Adjustment",
541 "Loyalty Program",
542 "Fee Schedule",
543 "Fee Structure",
544 "Stock Reconciliation",
545 "Travel Request",
546 "Fees",
547 "POS Profile",
548 "Opening Invoice Creation Tool",
549 "Opening Invoice Creation Tool Item",
550 "Subscription",
551 "Subscription Plan",
552 "POS Invoice",
553 "POS Invoice Item",
Glen Whitneydea6a902020-11-17 22:16:13 +0000554]
555
Rushabh Mehta7231f292017-07-13 15:00:56 +0530556regional_overrides = {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530557 "France": {
558 "erpnext.tests.test_regional.test_method": "erpnext.regional.france.utils.test_method"
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100559 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530560 "India": {
561 "erpnext.tests.test_regional.test_method": "erpnext.regional.india.utils.test_method",
562 "erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header": "erpnext.regional.india.utils.get_itemised_tax_breakup_header",
563 "erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data": "erpnext.regional.india.utils.get_itemised_tax_breakup_data",
564 "erpnext.accounts.party.get_regional_address_details": "erpnext.regional.india.utils.get_regional_address_details",
565 "erpnext.controllers.taxes_and_totals.get_regional_round_off_accounts": "erpnext.regional.india.utils.get_regional_round_off_accounts",
566 "erpnext.hr.utils.calculate_annual_eligible_hra_exemption": "erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption",
567 "erpnext.hr.utils.calculate_hra_exemption_for_period": "erpnext.regional.india.utils.calculate_hra_exemption_for_period",
568 "erpnext.controllers.accounts_controller.validate_einvoice_fields": "erpnext.regional.india.e_invoice.utils.validate_einvoice_fields",
569 "erpnext.assets.doctype.asset.asset.get_depreciation_amount": "erpnext.regional.india.utils.get_depreciation_amount",
570 "erpnext.stock.doctype.item.item.set_item_tax_from_hsn_code": "erpnext.regional.india.utils.set_item_tax_from_hsn_code",
rohitwaghchaured4526682017-12-28 14:20:13 +0530571 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530572 "United Arab Emirates": {
573 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data",
574 "erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries": "erpnext.regional.united_arab_emirates.utils.make_regional_gl_entries",
rohitwaghchaured4526682017-12-28 14:20:13 +0530575 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530576 "Saudi Arabia": {
577 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data"
scmmishra14d70ce2019-03-14 12:31:25 +0530578 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530579 "Italy": {
580 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.italy.utils.update_itemised_tax_data",
581 "erpnext.controllers.accounts_controller.validate_regional": "erpnext.regional.italy.utils.sales_invoice_validate",
582 },
Manas Solanki2f4e5ee2018-05-15 15:25:14 +0530583}
Mangesh-Khairnar2ffa87e2019-03-20 13:25:48 +0530584user_privacy_documents = [
585 {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530586 "doctype": "Lead",
587 "match_field": "email_id",
588 "personal_fields": ["phone", "mobile_no", "fax", "website", "lead_name"],
Mangesh-Khairnar2ffa87e2019-03-20 13:25:48 +0530589 },
590 {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530591 "doctype": "Opportunity",
592 "match_field": "contact_email",
593 "personal_fields": ["contact_mobile", "contact_display", "customer_name"],
594 },
John Clarkeb7339842019-04-04 23:32:25 -0600595]
Himanshu83b0b2a2019-09-27 00:59:48 +0530596
Himanshu Warekar21abc3a2019-09-30 13:40:02 +0530597# ERPNext doctypes for Global Search
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530598global_search_doctypes = {
599 "Default": [
600 {"doctype": "Customer", "index": 0},
601 {"doctype": "Supplier", "index": 1},
602 {"doctype": "Item", "index": 2},
603 {"doctype": "Warehouse", "index": 3},
604 {"doctype": "Account", "index": 4},
605 {"doctype": "Employee", "index": 5},
606 {"doctype": "BOM", "index": 6},
607 {"doctype": "Sales Invoice", "index": 7},
608 {"doctype": "Sales Order", "index": 8},
609 {"doctype": "Quotation", "index": 9},
610 {"doctype": "Work Order", "index": 10},
Walstan Baptista0baebbd2020-12-08 09:43:29 +0530611 {"doctype": "Purchase Order", "index": 11},
612 {"doctype": "Purchase Receipt", "index": 12},
613 {"doctype": "Purchase Invoice", "index": 13},
614 {"doctype": "Delivery Note", "index": 14},
615 {"doctype": "Stock Entry", "index": 15},
616 {"doctype": "Material Request", "index": 16},
617 {"doctype": "Delivery Trip", "index": 17},
618 {"doctype": "Pick List", "index": 18},
619 {"doctype": "Salary Slip", "index": 19},
620 {"doctype": "Leave Application", "index": 20},
621 {"doctype": "Expense Claim", "index": 21},
622 {"doctype": "Payment Entry", "index": 22},
623 {"doctype": "Lead", "index": 23},
624 {"doctype": "Opportunity", "index": 24},
625 {"doctype": "Item Price", "index": 25},
626 {"doctype": "Purchase Taxes and Charges Template", "index": 26},
627 {"doctype": "Sales Taxes and Charges", "index": 27},
628 {"doctype": "Asset", "index": 28},
629 {"doctype": "Project", "index": 29},
630 {"doctype": "Task", "index": 30},
631 {"doctype": "Timesheet", "index": 31},
632 {"doctype": "Issue", "index": 32},
633 {"doctype": "Serial No", "index": 33},
634 {"doctype": "Batch", "index": 34},
635 {"doctype": "Branch", "index": 35},
636 {"doctype": "Department", "index": 36},
637 {"doctype": "Employee Grade", "index": 37},
638 {"doctype": "Designation", "index": 38},
639 {"doctype": "Job Opening", "index": 39},
640 {"doctype": "Job Applicant", "index": 40},
641 {"doctype": "Job Offer", "index": 41},
642 {"doctype": "Salary Structure Assignment", "index": 42},
643 {"doctype": "Appraisal", "index": 43},
644 {"doctype": "Loan", "index": 44},
645 {"doctype": "Maintenance Schedule", "index": 45},
646 {"doctype": "Maintenance Visit", "index": 46},
647 {"doctype": "Warranty Claim", "index": 47},
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530648 ],
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530649 "Education": [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530650 {"doctype": "Article", "index": 1},
651 {"doctype": "Video", "index": 2},
652 {"doctype": "Topic", "index": 3},
653 {"doctype": "Course", "index": 4},
654 {"doctype": "Program", "index": 5},
655 {"doctype": "Quiz", "index": 6},
656 {"doctype": "Question", "index": 7},
657 {"doctype": "Fee Schedule", "index": 8},
658 {"doctype": "Fee Structure", "index": 9},
659 {"doctype": "Fees", "index": 10},
660 {"doctype": "Student Group", "index": 11},
661 {"doctype": "Student", "index": 12},
662 {"doctype": "Instructor", "index": 13},
663 {"doctype": "Course Activity", "index": 14},
664 {"doctype": "Quiz Activity", "index": 15},
665 {"doctype": "Course Enrollment", "index": 16},
666 {"doctype": "Program Enrollment", "index": 17},
667 {"doctype": "Student Language", "index": 18},
668 {"doctype": "Student Applicant", "index": 19},
669 {"doctype": "Assessment Result", "index": 20},
670 {"doctype": "Assessment Plan", "index": 21},
671 {"doctype": "Grading Scale", "index": 22},
672 {"doctype": "Guardian", "index": 23},
673 {"doctype": "Student Leave Application", "index": 24},
674 {"doctype": "Student Log", "index": 25},
675 {"doctype": "Room", "index": 26},
676 {"doctype": "Course Schedule", "index": 27},
677 {"doctype": "Student Attendance", "index": 28},
678 {"doctype": "Announcement", "index": 29},
679 {"doctype": "Student Category", "index": 30},
680 {"doctype": "Assessment Group", "index": 31},
681 {"doctype": "Student Batch Name", "index": 32},
682 {"doctype": "Assessment Criteria", "index": 33},
683 {"doctype": "Academic Year", "index": 34},
684 {"doctype": "Academic Term", "index": 35},
685 {"doctype": "School House", "index": 36},
686 {"doctype": "Student Admission", "index": 37},
687 {"doctype": "Fee Category", "index": 38},
688 {"doctype": "Assessment Code", "index": 39},
689 {"doctype": "Discussion", "index": 40},
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530690 ],
Faris Ansari22bcad92020-10-16 15:28:12 +0530691}
leela3234df52021-01-12 23:31:40 +0530692
693additional_timeline_content = {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530694 "*": ["erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs"]
leela3234df52021-01-12 23:31:40 +0530695}