Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 1 | from frappe import _ |
| 2 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 3 | app_name = "erpnext" |
| 4 | app_title = "ERPNext" |
Rushabh Mehta | ba02ce6 | 2015-07-22 15:07:25 +0530 | [diff] [blame] | 5 | app_publisher = "Frappe Technologies Pvt. Ltd." |
Rushabh Mehta | edc8ab0 | 2015-11-18 16:48:19 +0530 | [diff] [blame] | 6 | app_description = """ERP made simple""" |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 7 | app_icon = "fa fa-th" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 8 | app_color = "#e74c3c" |
Nabin Hait | 7ba4d02 | 2015-11-05 16:55:10 +0530 | [diff] [blame] | 9 | app_email = "info@erpnext.com" |
| 10 | app_license = "GNU General Public License (v3)" |
Rushabh Mehta | 7d23e42 | 2015-11-02 10:45:18 +0530 | [diff] [blame] | 11 | source_link = "https://github.com/frappe/erpnext" |
Shivam Mishra | 8261df2 | 2020-10-19 13:52:35 +0530 | [diff] [blame] | 12 | app_logo_url = "/assets/erpnext/images/erpnext-logo.svg" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 13 | |
scmmishra | 734d3e0 | 2018-11-03 18:03:35 +0530 | [diff] [blame] | 14 | |
Sahil Khan | ad4eb64 | 2020-06-30 17:54:41 +0530 | [diff] [blame] | 15 | develop_version = '13.x.x-develop' |
Rushabh Mehta | db206f2 | 2017-03-10 09:38:58 +0530 | [diff] [blame] | 16 | |
Faris Ansari | 464d838 | 2021-05-07 14:53:42 +0530 | [diff] [blame] | 17 | app_include_js = "erpnext.bundle.js" |
| 18 | app_include_css = "erpnext.bundle.css" |
| 19 | web_include_js = "erpnext-web.bundle.js" |
| 20 | web_include_css = "erpnext-web.bundle.css" |
Suraj Shetty | 815aad1 | 2021-05-23 13:31:54 +0530 | [diff] [blame] | 21 | email_css = "email_erpnext.bundle.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 22 | |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 23 | doctype_js = { |
Abhishek Balam | 346ca56 | 2020-10-14 18:11:04 +0530 | [diff] [blame] | 24 | "Address": "public/js/address.js", |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 25 | "Communication": "public/js/communication.js", |
Faris Ansari | 5f8b358 | 2019-03-19 11:48:32 +0530 | [diff] [blame] | 26 | "Event": "public/js/event.js", |
Noah Jacob | cbddeda | 2021-07-26 12:54:35 +0530 | [diff] [blame] | 27 | "Newsletter": "public/js/newsletter.js", |
| 28 | "Contact": "public/js/contact.js" |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 29 | } |
| 30 | |
Abhishek Balam | 6e9e7b4 | 2020-10-14 19:31:37 +0530 | [diff] [blame] | 31 | override_doctype_class = { |
Faris Ansari | 22bcad9 | 2020-10-16 15:28:12 +0530 | [diff] [blame] | 32 | 'Address': 'erpnext.accounts.custom.address.ERPNextAddress' |
Abhishek Balam | 6e9e7b4 | 2020-10-14 19:31:37 +0530 | [diff] [blame] | 33 | } |
| 34 | |
Neil Trini Lasrado | 771fbb8 | 2018-08-24 15:15:56 +0530 | [diff] [blame] | 35 | welcome_email = "erpnext.setup.utils.welcome_email" |
| 36 | |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 37 | # setup wizard |
| 38 | setup_wizard_requires = "assets/erpnext/js/setup_wizard.js" |
Prateeksha Singh | 8b0b56d | 2017-12-21 11:55:58 +0530 | [diff] [blame] | 39 | setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 40 | setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test" |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 41 | |
Rushabh Mehta | d55bdcf | 2015-12-31 11:12:48 +0530 | [diff] [blame] | 42 | before_install = "erpnext.setup.install.check_setup_wizard_not_completed" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 43 | after_install = "erpnext.setup.install.after_install" |
| 44 | |
| 45 | boot_session = "erpnext.startup.boot.boot_session" |
| 46 | notification_config = "erpnext.startup.notifications.get_notification_config" |
Rushabh Mehta | 05ce7ec | 2017-02-22 16:15:43 +0530 | [diff] [blame] | 47 | get_help_messages = "erpnext.utilities.activation.get_help_messages" |
prssanna | 3f1444e | 2019-09-24 13:04:53 +0530 | [diff] [blame] | 48 | leaderboards = "erpnext.startup.leaderboard.get_leaderboards" |
Prssanna Desai | 82ddef5 | 2020-06-18 18:18:41 +0530 | [diff] [blame] | 49 | filters_config = "erpnext.startup.filters.get_filters_config" |
prssanna | b57b3c9 | 2020-10-22 15:37:47 +0530 | [diff] [blame] | 50 | additional_print_settings = "erpnext.controllers.print_settings.get_print_settings" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 51 | |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 52 | on_session_creation = [ |
| 53 | "erpnext.portal.utils.create_customer_or_supplier", |
marination | 22f41a1 | 2021-02-25 13:56:38 +0530 | [diff] [blame] | 54 | "erpnext.e_commerce.shopping_cart.utils.set_cart_count" |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 55 | ] |
marination | 22f41a1 | 2021-02-25 13:56:38 +0530 | [diff] [blame] | 56 | on_logout = "erpnext.e_commerce.shopping_cart.utils.clear_cart_count" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 57 | |
Mangesh-Khairnar | 07aae76 | 2019-06-26 11:03:57 +0530 | [diff] [blame] | 58 | treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', 'Assessment Group', 'Department'] |
Rushabh Mehta | 764aa92 | 2016-05-02 13:28:46 +0530 | [diff] [blame] | 59 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 60 | # website |
marination | 22f41a1 | 2021-02-25 13:56:38 +0530 | [diff] [blame] | 61 | update_website_context = ["erpnext.e_commerce.shopping_cart.utils.update_website_context", "erpnext.education.doctype.education_settings.education_settings.update_website_context"] |
| 62 | my_account_context = "erpnext.e_commerce.shopping_cart.utils.update_my_account_context" |
Shariq Ansari | 9aa6f52 | 2021-09-14 12:49:08 +0530 | [diff] [blame] | 63 | webform_list_context = "erpnext.controllers.website_list_for_contact.get_webform_list_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 64 | |
Zarrar | 13ddc7e | 2018-03-20 12:38:43 +0530 | [diff] [blame] | 65 | calendars = ["Task", "Work Order", "Leave Application", "Sales Order", "Holiday List", "Course Schedule"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 66 | |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 67 | domains = { |
| 68 | 'Distribution': 'erpnext.domains.distribution', |
| 69 | 'Education': 'erpnext.domains.education', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 70 | 'Manufacturing': 'erpnext.domains.manufacturing', |
Zarrar | de8f612 | 2017-12-13 18:36:08 +0530 | [diff] [blame] | 71 | 'Non Profit': 'erpnext.domains.non_profit', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 72 | 'Retail': 'erpnext.domains.retail', |
| 73 | 'Services': 'erpnext.domains.services', |
| 74 | } |
| 75 | |
marination | 025574d | 2021-02-19 12:50:01 +0530 | [diff] [blame] | 76 | website_generators = ["Item Group", "Website Item", "BOM", "Sales Partner", |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 77 | "Job Opening", "Student Admission"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 78 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 79 | website_context = { |
Rucha Mahabal | 01bea14 | 2021-10-04 09:58:38 +0530 | [diff] [blame] | 80 | "favicon": "/assets/erpnext/images/erpnext-favicon.svg", |
Shivam Mishra | 8261df2 | 2020-10-19 13:52:35 +0530 | [diff] [blame] | 81 | "splash_image": "/assets/erpnext/images/erpnext-logo.svg" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 82 | } |
| 83 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 84 | website_route_rules = [ |
| 85 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 86 | {"from_route": "/orders/<path:name>", "to_route": "order", |
| 87 | "defaults": { |
| 88 | "doctype": "Sales Order", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 89 | "parents": [{"label": _("Orders"), "route": "orders"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 90 | } |
| 91 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 92 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 93 | {"from_route": "/invoices/<path:name>", "to_route": "order", |
| 94 | "defaults": { |
| 95 | "doctype": "Sales Invoice", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 96 | "parents": [{"label": _("Invoices"), "route": "invoices"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 97 | } |
| 98 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 99 | {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"}, |
| 100 | {"from_route": "/supplier-quotations/<path:name>", "to_route": "order", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 101 | "defaults": { |
| 102 | "doctype": "Supplier Quotation", |
Brown-Harry Boma | d3fa191 | 2017-09-27 08:23:38 +0100 | [diff] [blame] | 103 | "parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}] |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 104 | } |
| 105 | }, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 106 | {"from_route": "/purchase-orders", "to_route": "Purchase Order"}, |
| 107 | {"from_route": "/purchase-orders/<path:name>", "to_route": "order", |
| 108 | "defaults": { |
| 109 | "doctype": "Purchase Order", |
| 110 | "parents": [{"label": _("Purchase Order"), "route": "purchase-orders"}] |
| 111 | } |
| 112 | }, |
| 113 | {"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"}, |
| 114 | {"from_route": "/purchase-invoices/<path:name>", "to_route": "order", |
| 115 | "defaults": { |
| 116 | "doctype": "Purchase Invoice", |
| 117 | "parents": [{"label": _("Purchase Invoice"), "route": "purchase-invoices"}] |
| 118 | } |
| 119 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 120 | {"from_route": "/quotations", "to_route": "Quotation"}, |
| 121 | {"from_route": "/quotations/<path:name>", "to_route": "order", |
| 122 | "defaults": { |
| 123 | "doctype": "Quotation", |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 124 | "parents": [{"label": _("Quotations"), "route": "quotations"}] |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 125 | } |
| 126 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 127 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 128 | {"from_route": "/shipments/<path:name>", "to_route": "order", |
| 129 | "defaults": { |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 130 | "doctype": "Delivery Note", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 131 | "parents": [{"label": _("Shipments"), "route": "shipments"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 132 | } |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 133 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 134 | {"from_route": "/rfq", "to_route": "Request for Quotation"}, |
| 135 | {"from_route": "/rfq/<path:name>", "to_route": "rfq", |
| 136 | "defaults": { |
| 137 | "doctype": "Request for Quotation", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 138 | "parents": [{"label": _("Request for Quotation"), "route": "rfq"}] |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 139 | } |
| 140 | }, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 141 | {"from_route": "/addresses", "to_route": "Address"}, |
| 142 | {"from_route": "/addresses/<path:name>", "to_route": "addresses", |
| 143 | "defaults": { |
| 144 | "doctype": "Address", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 145 | "parents": [{"label": _("Addresses"), "route": "addresses"}] |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 146 | } |
| 147 | }, |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 148 | {"from_route": "/jobs", "to_route": "Job Opening"}, |
Neil Trini Lasrado | 83d8120 | 2016-09-15 14:48:13 +0530 | [diff] [blame] | 149 | {"from_route": "/admissions", "to_route": "Student Admission"}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 150 | {"from_route": "/boms", "to_route": "BOM"}, |
| 151 | {"from_route": "/timesheets", "to_route": "Timesheet"}, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 152 | {"from_route": "/material-requests", "to_route": "Material Request"}, |
| 153 | {"from_route": "/material-requests/<path:name>", "to_route": "material_request_info", |
| 154 | "defaults": { |
| 155 | "doctype": "Material Request", |
| 156 | "parents": [{"label": _("Material Request"), "route": "material-requests"}] |
| 157 | } |
| 158 | }, |
Jannat Patel | 5a42511 | 2021-07-01 17:17:34 +0530 | [diff] [blame] | 159 | {"from_route": "/project", "to_route": "Project"} |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 160 | ] |
| 161 | |
Rushabh Mehta | b9cdb05 | 2017-03-08 12:33:43 +0530 | [diff] [blame] | 162 | standard_portal_menu_items = [ |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 163 | {"title": _("Projects"), "route": "/project", "reference_doctype": "Project"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 164 | {"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"}, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 165 | {"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"}, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 166 | {"title": _("Purchase Orders"), "route": "/purchase-orders", "reference_doctype": "Purchase Order", "role": "Supplier"}, |
| 167 | {"title": _("Purchase Invoices"), "route": "/purchase-invoices", "reference_doctype": "Purchase Invoice", "role": "Supplier"}, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 168 | {"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 169 | {"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"}, |
| 170 | {"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"}, |
| 171 | {"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"}, |
| 172 | {"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"}, |
Neil Trini Lasrado | 3f0a581 | 2016-07-19 14:17:33 +0530 | [diff] [blame] | 173 | {"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 174 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 175 | {"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"}, |
Manas Solanki | 0518001 | 2017-10-05 14:31:31 +0530 | [diff] [blame] | 176 | {"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"}, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 177 | {"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission", "role": "Student"}, |
| 178 | {"title": _("Certification"), "route": "/certification", "reference_doctype": "Certification Application", "role": "Non Profit Portal User"}, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 179 | {"title": _("Material Request"), "route": "/material-requests", "reference_doctype": "Material Request", "role": "Customer"}, |
0Pranav | 5f5c725 | 2019-12-18 16:21:50 +0530 | [diff] [blame] | 180 | {"title": _("Appointment Booking"), "route": "/book_appointment"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 181 | ] |
| 182 | |
| 183 | default_roles = [ |
Rushabh Mehta | 95439db | 2017-01-14 00:25:22 +0530 | [diff] [blame] | 184 | {'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'}, |
| 185 | {'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 186 | {'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'}, |
Rushabh Mehta | c78b311 | 2016-03-30 12:29:48 +0530 | [diff] [blame] | 187 | ] |
| 188 | |
Suraj Shetty | f1ffdb3 | 2019-06-07 12:48:13 +0530 | [diff] [blame] | 189 | sounds = [ |
| 190 | {"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2}, |
| 191 | {"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2}, |
| 192 | ] |
| 193 | |
shariquerik | 1989375 | 2021-03-26 16:34:22 +0530 | [diff] [blame] | 194 | has_upload_permission = { |
| 195 | "Employee": "erpnext.hr.doctype.employee.employee.has_upload_permission" |
| 196 | } |
| 197 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 198 | has_website_permission = { |
| 199 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 200 | "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 201 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 202 | "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 203 | "Purchase Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 204 | "Purchase Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 205 | "Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 206 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 207 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission", |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 208 | "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 209 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 210 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 211 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 212 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 213 | before_tests = "erpnext.setup.utils.before_tests" |
| 214 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 215 | standard_queries = { |
Jamsheer | c0097ad | 2018-11-23 11:37:58 +0530 | [diff] [blame] | 216 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list", |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 217 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 218 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 219 | doc_events = { |
Rucha Mahabal | c91e03c | 2020-11-28 20:24:06 +0530 | [diff] [blame] | 220 | "*": { |
Himanshu | ec25d59 | 2021-06-14 19:05:52 +0530 | [diff] [blame] | 221 | "validate": "erpnext.support.doctype.service_level_agreement.service_level_agreement.apply", |
Rucha Mahabal | c91e03c | 2020-11-28 20:24:06 +0530 | [diff] [blame] | 222 | }, |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 223 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 224 | "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty", |
| 225 | "on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty" |
Anand Doshi | 648062d | 2014-05-05 16:46:14 +0530 | [diff] [blame] | 226 | }, |
| 227 | "User": { |
KanchanChauhan | 1dc26b1 | 2017-06-13 15:26:35 +0530 | [diff] [blame] | 228 | "after_insert": "frappe.contacts.doctype.contact.contact.update_contact", |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 229 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Rushabh Mehta | 0d6db6c | 2017-03-31 23:01:45 +0530 | [diff] [blame] | 230 | "on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions", |
| 231 | "erpnext.portal.utils.set_default_role"] |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 232 | }, |
Himanshu | ec25d59 | 2021-06-14 19:05:52 +0530 | [diff] [blame] | 233 | "Communication": { |
Ganga Manoj | f4fc138 | 2021-07-14 11:43:10 +0530 | [diff] [blame] | 234 | "on_update": [ |
Saqib Ansari | c1d8877 | 2021-12-06 14:34:59 +0530 | [diff] [blame] | 235 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.on_communication_update", |
Ganga Manoj | f4fc138 | 2021-07-14 11:43:10 +0530 | [diff] [blame] | 236 | "erpnext.support.doctype.issue.issue.set_first_response_time" |
| 237 | ] |
Himanshu | ec25d59 | 2021-06-14 19:05:52 +0530 | [diff] [blame] | 238 | }, |
marination | 7bc087e | 2022-02-01 10:51:50 +0530 | [diff] [blame] | 239 | "Sales Taxes and Charges Template": { |
marination | eef9cf1 | 2021-02-16 18:45:36 +0530 | [diff] [blame] | 240 | "on_update": "erpnext.e_commerce.doctype.e_commerce_settings.e_commerce_settings.validate_cart_settings" |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 241 | }, |
Deepesh Garg | d07447a | 2020-11-24 08:09:17 +0530 | [diff] [blame] | 242 | "Tax Category": { |
| 243 | "validate": "erpnext.regional.india.utils.validate_tax_category" |
| 244 | }, |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 245 | "Sales Invoice": { |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 246 | "on_submit": [ |
| 247 | "erpnext.regional.create_transaction_log", |
| 248 | "erpnext.regional.italy.utils.sales_invoice_on_submit", |
Mohammed Redah | 9d319c2 | 2021-11-19 15:13:23 +0300 | [diff] [blame] | 249 | "erpnext.regional.saudi_arabia.utils.create_qr_code", |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 250 | "erpnext.erpnext_integrations.taxjar_integration.create_transaction" |
| 251 | ], |
| 252 | "on_cancel": [ |
| 253 | "erpnext.regional.italy.utils.sales_invoice_on_cancel", |
Deepesh Garg | 4382040 | 2021-11-29 18:25:47 +0530 | [diff] [blame] | 254 | "erpnext.erpnext_integrations.taxjar_integration.delete_transaction", |
Ahmad | 8a42570 | 2021-09-14 14:45:23 +0500 | [diff] [blame] | 255 | "erpnext.regional.saudi_arabia.utils.delete_qr_code_file" |
Ahmad | 940db71 | 2021-09-17 01:14:41 +0500 | [diff] [blame] | 256 | ], |
Deepesh Garg | 4382040 | 2021-11-29 18:25:47 +0530 | [diff] [blame] | 257 | "on_trash": "erpnext.regional.check_deletion_permission", |
Ankush Menat | 76c8521 | 2021-04-07 16:09:58 +0530 | [diff] [blame] | 258 | "validate": [ |
Deepesh Garg | c36e48a | 2021-04-12 10:55:43 +0530 | [diff] [blame] | 259 | "erpnext.regional.india.utils.validate_document_name", |
| 260 | "erpnext.regional.india.utils.update_taxable_values" |
Ankush Menat | 76c8521 | 2021-04-07 16:09:58 +0530 | [diff] [blame] | 261 | ] |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 262 | }, |
Dany Robert | c5c47e9 | 2021-12-07 11:01:02 +0000 | [diff] [blame] | 263 | "POS Invoice": { |
| 264 | "on_submit": ["erpnext.regional.saudi_arabia.utils.create_qr_code"] |
| 265 | }, |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 266 | "Purchase Invoice": { |
hasnain2808 | 7b7a8e1 | 2020-09-09 20:54:30 +0530 | [diff] [blame] | 267 | "validate": [ |
Deepesh Garg | 55fe85d | 2021-05-14 12:17:41 +0530 | [diff] [blame] | 268 | "erpnext.regional.india.utils.validate_reverse_charge_transaction", |
| 269 | "erpnext.regional.india.utils.update_itc_availed_fields", |
hasnain2808 | 7b7a8e1 | 2020-09-09 20:54:30 +0530 | [diff] [blame] | 270 | "erpnext.regional.united_arab_emirates.utils.update_grand_total_for_rcm", |
Deepesh Garg | 55fe85d | 2021-05-14 12:17:41 +0530 | [diff] [blame] | 271 | "erpnext.regional.united_arab_emirates.utils.validate_returns", |
| 272 | "erpnext.regional.india.utils.update_taxable_values" |
| 273 | ] |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 274 | }, |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 275 | "Payment Entry": { |
Deepesh Garg | 8b644d8 | 2021-07-15 15:36:54 +0530 | [diff] [blame] | 276 | "validate": "erpnext.regional.india.utils.update_place_of_supply", |
KanchanChauhan | 2826fd3 | 2020-07-23 15:45:03 +0530 | [diff] [blame] | 277 | "on_submit": ["erpnext.regional.create_transaction_log", "erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status", "erpnext.accounts.doctype.dunning.dunning.resolve_dunning"], |
Nabin Hait | 0357fbc | 2018-03-09 13:19:52 +0530 | [diff] [blame] | 278 | "on_trash": "erpnext.regional.check_deletion_permission" |
Rushabh Mehta | b3c8f44 | 2017-06-21 17:22:38 +0530 | [diff] [blame] | 279 | }, |
| 280 | 'Address': { |
Rucha Mahabal | 212eb4b | 2021-08-30 13:10:18 +0530 | [diff] [blame] | 281 | 'validate': [ |
| 282 | 'erpnext.regional.india.utils.validate_gstin_for_india', |
| 283 | 'erpnext.regional.italy.utils.set_state_code', |
| 284 | 'erpnext.regional.india.utils.update_gst_category', |
Rucha Mahabal | 212eb4b | 2021-08-30 13:10:18 +0530 | [diff] [blame] | 285 | ], |
Nabin Hait | 619c42b | 2018-01-10 17:48:03 +0530 | [diff] [blame] | 286 | }, |
Deepesh Garg | bb8cd1c | 2021-02-22 19:28:45 +0530 | [diff] [blame] | 287 | 'Supplier': { |
| 288 | 'validate': 'erpnext.regional.india.utils.validate_pan_for_india' |
| 289 | }, |
Deepesh Garg | 6e2c13f | 2019-12-10 15:55:05 +0530 | [diff] [blame] | 290 | ('Sales Invoice', 'Sales Order', 'Delivery Note', 'Purchase Invoice', 'Purchase Order', 'Purchase Receipt'): { |
| 291 | 'validate': ['erpnext.regional.india.utils.set_place_of_supply'] |
Shridhar Patil | 4987c4e | 2018-07-03 10:10:04 +0530 | [diff] [blame] | 292 | }, |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 293 | "Contact": { |
| 294 | "on_trash": "erpnext.support.doctype.issue.issue.update_issue", |
leela | 3234df5 | 2021-01-12 23:31:40 +0530 | [diff] [blame] | 295 | "after_insert": "erpnext.telephony.doctype.call_log.call_log.link_existing_conversations", |
ChillarAnand | c8565c7 | 2021-09-02 19:57:43 +0530 | [diff] [blame] | 296 | "validate": ["erpnext.crm.utils.update_lead_phone_numbers"] |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 297 | }, |
Rucha Mahabal | 9e35bff | 2019-07-12 13:56:36 +0530 | [diff] [blame] | 298 | "Email Unsubscribe": { |
| 299 | "after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient" |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 300 | }, |
| 301 | ('Quotation', 'Sales Order', 'Sales Invoice'): { |
| 302 | 'validate': ["erpnext.erpnext_integrations.taxjar_integration.set_sales_tax"] |
Deepesh Garg | 2b2572b | 2021-08-20 14:40:12 +0530 | [diff] [blame] | 303 | }, |
| 304 | "Company": { |
Deepesh Garg | 73c5651 | 2021-11-22 14:21:53 +0530 | [diff] [blame] | 305 | "on_trash": ["erpnext.regional.india.utils.delete_gst_settings_for_company", |
| 306 | "erpnext.regional.saudi_arabia.utils.delete_vat_settings_for_company"] |
Subin Tom | 798b464 | 2021-09-03 12:30:57 +0530 | [diff] [blame] | 307 | }, |
| 308 | "Integration Request": { |
| 309 | "validate": "erpnext.accounts.doctype.payment_request.payment_request.validate_payment" |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 310 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 311 | } |
| 312 | |
vishal | dcef798 | 2020-01-13 12:59:52 +0530 | [diff] [blame] | 313 | # On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled. |
| 314 | # to maintain data integrity we exempted payment entry. it will un-link when sales invoice get cancelled. |
| 315 | # if payment entry not in auto cancel exempted doctypes it will cancel payment entry. |
| 316 | auto_cancel_exempted_doctypes= [ |
Rucha Mahabal | 4887b69 | 2020-10-23 20:33:30 +0530 | [diff] [blame] | 317 | "Payment Entry", |
vishal | dcef798 | 2020-01-13 12:59:52 +0530 | [diff] [blame] | 318 | ] |
vishal | 70148a6 | 2019-12-02 17:37:46 +0530 | [diff] [blame] | 319 | |
Rohit Waghchaure | a8f78fa | 2021-04-13 18:43:57 +0530 | [diff] [blame] | 320 | after_migrate = ["erpnext.setup.install.update_select_perm_after_install"] |
| 321 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 322 | scheduler_events = { |
marination | 06ee0ea | 2020-09-07 18:49:06 +0530 | [diff] [blame] | 323 | "cron": { |
| 324 | "0/30 * * * *": [ |
Gavin D'souza | 71ac399 | 2020-09-10 13:57:44 +0530 | [diff] [blame] | 325 | "erpnext.utilities.doctype.video.video.update_youtube_data", |
marination | 06ee0ea | 2020-09-07 18:49:06 +0530 | [diff] [blame] | 326 | ] |
| 327 | }, |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 328 | "all": [ |
Rucha Mahabal | 5100e11 | 2020-02-24 22:08:45 +0530 | [diff] [blame] | 329 | "erpnext.projects.doctype.project.project.project_status_update_reminder", |
mergify[bot] | b9942ad | 2021-10-01 13:15:40 +0530 | [diff] [blame] | 330 | "erpnext.hr.doctype.interview.interview.send_interview_reminder", |
Anupam K | 22318b2 | 2020-04-18 00:45:18 +0530 | [diff] [blame] | 331 | "erpnext.crm.doctype.social_media_post.social_media_post.process_scheduled_social_media_posts" |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 332 | ], |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 333 | "hourly": [ |
tundebabzy | 0ec4452 | 2018-03-01 11:33:03 +0100 | [diff] [blame] | 334 | 'erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails', |
Pawan Mehta | 6010a10 | 2018-09-05 17:16:57 +0530 | [diff] [blame] | 335 | "erpnext.accounts.doctype.subscription.subscription.process_all", |
Aditya Hase | 7bc692d | 2019-01-07 19:01:47 +0530 | [diff] [blame] | 336 | "erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details", |
| 337 | "erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs", |
Nabin Hait | 34c551d | 2019-07-03 10:34:31 +0530 | [diff] [blame] | 338 | "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.automatic_synchronization", |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 339 | "erpnext.projects.doctype.project.project.hourly_reminder", |
Himanshu Warekar | 6e6148b | 2019-05-10 23:49:42 +0530 | [diff] [blame] | 340 | "erpnext.projects.doctype.project.project.collect_project_status", |
Saqib Ansari | a8c75b6 | 2021-11-26 20:16:21 +0530 | [diff] [blame] | 341 | "erpnext.hr.doctype.shift_type.shift_type.process_auto_attendance_for_all_shifts" |
Rohit Waghchaure | b103b24 | 2021-05-27 17:05:36 +0530 | [diff] [blame] | 342 | ], |
| 343 | "hourly_long": [ |
Mohammed Yusuf Shaikh | a3e69cf | 2022-02-08 01:00:37 +0530 | [diff] [blame] | 344 | "erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries", |
| 345 | "erpnext.bulk_transaction.doctype.bulk_transaction_log.bulk_transaction_log.retry_failing_transaction" |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 346 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 347 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 348 | "erpnext.stock.reorder_item.reorder_item", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 349 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
mbauskar | e1e25a0 | 2017-02-16 19:36:59 +0530 | [diff] [blame] | 350 | "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity", |
Rohit Waghchaure | 2f1db57 | 2016-11-08 12:39:33 +0530 | [diff] [blame] | 351 | "erpnext.controllers.accounts_controller.update_invoice_status", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 352 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
Frappe PR Bot | 255b99e | 2021-08-24 20:19:22 +0530 | [diff] [blame] | 353 | "erpnext.hr.doctype.employee.employee_reminders.send_work_anniversary_reminders", |
| 354 | "erpnext.hr.doctype.employee.employee_reminders.send_birthday_reminders", |
Nabin Hait | 4fdb052 | 2016-03-09 12:40:56 +0530 | [diff] [blame] | 355 | "erpnext.projects.doctype.task.task.set_tasks_as_overdue", |
Kanchan Chauhan | e58a41a | 2017-10-17 15:17:24 +0530 | [diff] [blame] | 356 | "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries", |
Suraj Shetty | d3069fe | 2018-02-21 15:15:43 +0530 | [diff] [blame] | 357 | "erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.send_summary", |
Prateeksha Singh | e012e24 | 2017-07-18 10:35:12 +0530 | [diff] [blame] | 358 | "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status", |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 359 | "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards", |
Nabin Hait | adbf8ad | 2017-07-31 20:45:36 +0530 | [diff] [blame] | 360 | "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history", |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 361 | "erpnext.assets.doctype.asset.asset.update_maintenance_status", |
Rohan Bansal | bf0f0aa | 2018-05-23 15:06:45 +0530 | [diff] [blame] | 362 | "erpnext.assets.doctype.asset.asset.make_post_gl_entry", |
Himanshu Mishra | 7aabef2 | 2018-06-28 23:43:23 +0530 | [diff] [blame] | 363 | "erpnext.crm.doctype.contract.contract.update_status_for_contracts", |
Himanshu | 0209ef0 | 2018-12-25 17:42:31 +0530 | [diff] [blame] | 364 | "erpnext.projects.doctype.project.project.update_project_sales_billing", |
Sagar Vora | 4d1a9b1 | 2019-01-22 15:56:39 +0530 | [diff] [blame] | 365 | "erpnext.projects.doctype.project.project.send_project_status_email_to_users", |
Himanshu | f3e5213 | 2019-03-19 16:47:56 +0530 | [diff] [blame] | 366 | "erpnext.quality_management.doctype.quality_review.quality_review.review", |
Himanshu Warekar | cf37e40 | 2019-05-07 10:27:01 +0530 | [diff] [blame] | 367 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.check_agreement_status", |
Rucha Mahabal | b54459e | 2019-07-22 03:23:40 +0530 | [diff] [blame] | 368 | "erpnext.crm.doctype.email_campaign.email_campaign.send_email_to_leads_or_contacts", |
0Pranav | 53b65ab | 2019-11-15 16:42:32 +0530 | [diff] [blame] | 369 | "erpnext.crm.doctype.email_campaign.email_campaign.set_email_campaign_status", |
marination | 8179804 | 2020-04-14 23:05:11 +0530 | [diff] [blame] | 370 | "erpnext.selling.doctype.quotation.quotation.set_expired_status", |
Abhishek Balam | ee5b9c7 | 2020-08-11 16:23:47 +0530 | [diff] [blame] | 371 | "erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status", |
Rucha Mahabal | f1cca59 | 2021-01-21 16:36:15 +0530 | [diff] [blame] | 372 | "erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_auto_email", |
Development for People | 076cb40 | 2021-12-21 10:18:31 +0000 | [diff] [blame] | 373 | "erpnext.non_profit.doctype.membership.membership.set_expired_status", |
mergify[bot] | b9942ad | 2021-10-01 13:15:40 +0530 | [diff] [blame] | 374 | "erpnext.hr.doctype.interview.interview.send_daily_feedback_reminder" |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 375 | ], |
| 376 | "daily_long": [ |
Gavin D'souza | d38f537 | 2019-10-30 14:43:58 +0530 | [diff] [blame] | 377 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Mangesh-Khairnar | f281f00 | 2019-08-05 14:47:02 +0530 | [diff] [blame] | 378 | "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.update_latest_price_in_all_boms", |
| 379 | "erpnext.hr.doctype.leave_ledger_entry.leave_ledger_entry.process_expired_allocation", |
Deepesh Garg | d1d0a50 | 2020-02-26 10:44:24 +0530 | [diff] [blame] | 380 | "erpnext.hr.utils.generate_leave_encashment", |
Anurag Mishra | 755b773 | 2020-11-25 16:05:17 +0530 | [diff] [blame] | 381 | "erpnext.hr.utils.allocate_earned_leaves", |
Afshan | 5d66a2b | 2021-03-12 15:51:34 +0530 | [diff] [blame] | 382 | "erpnext.loan_management.doctype.process_loan_security_shortfall.process_loan_security_shortfall.create_process_loan_security_shortfall", |
| 383 | "erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_term_loans", |
Anupam | 77cf532 | 2020-09-28 18:38:41 +0530 | [diff] [blame] | 384 | "erpnext.crm.doctype.lead.lead.daily_open_lead" |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 385 | ], |
Frappe PR Bot | 255b99e | 2021-08-24 20:19:22 +0530 | [diff] [blame] | 386 | "weekly": [ |
| 387 | "erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_weekly" |
| 388 | ], |
| 389 | "monthly": [ |
| 390 | "erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_monthly" |
| 391 | ], |
Nabin Hait | b9b2a06 | 2019-05-01 12:49:44 +0530 | [diff] [blame] | 392 | "monthly_long": [ |
Deepesh Garg | de03d2c | 2020-06-01 11:30:34 +0530 | [diff] [blame] | 393 | "erpnext.accounts.deferred_revenue.process_deferred_accounting", |
Afshan | 5d66a2b | 2021-03-12 15:51:34 +0530 | [diff] [blame] | 394 | "erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 395 | ] |
| 396 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 397 | |
Faris Ansari | 2c5b3e8 | 2017-07-13 18:37:18 +0530 | [diff] [blame] | 398 | email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" |
| 399 | |
Faris Ansari | 40d3ad2 | 2017-07-31 16:16:22 +0530 | [diff] [blame] | 400 | default_mail_footer = """ |
| 401 | <span> |
| 402 | Sent via |
| 403 | <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank"> |
| 404 | ERPNext |
| 405 | </a> |
| 406 | </span> |
| 407 | """ |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 408 | |
| 409 | get_translated_dict = { |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 410 | ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict" |
| 411 | } |
Rushabh Mehta | fe027b3 | 2016-03-28 13:21:43 +0530 | [diff] [blame] | 412 | |
| 413 | bot_parsers = [ |
| 414 | 'erpnext.utilities.bot.FindItemBot', |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 415 | ] |
Anand Doshi | f576f3b | 2016-06-25 19:51:48 +0530 | [diff] [blame] | 416 | |
| 417 | get_site_info = 'erpnext.utilities.get_site_info' |
Saurabh | 94c666a | 2016-11-08 20:35:50 +0530 | [diff] [blame] | 418 | |
Saurabh | 0d47d51 | 2017-03-14 14:46:05 +0530 | [diff] [blame] | 419 | payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account" |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 420 | |
Himanshu | b84333f | 2020-04-14 13:02:03 +0530 | [diff] [blame] | 421 | communication_doctypes = ["Customer", "Supplier"] |
| 422 | |
Glen Whitney | dea6a90 | 2020-11-17 22:16:13 +0000 | [diff] [blame] | 423 | accounting_dimension_doctypes = ["GL Entry", "Sales Invoice", "Purchase Invoice", "Payment Entry", "Asset", |
| 424 | "Expense Claim", "Expense Claim Detail", "Expense Taxes and Charges", "Stock Entry", "Budget", "Payroll Entry", "Delivery Note", |
| 425 | "Sales Invoice Item", "Purchase Invoice Item", "Purchase Order Item", "Journal Entry Account", "Material Request Item", "Delivery Note Item", |
| 426 | "Purchase Receipt Item", "Stock Entry Detail", "Payment Entry Deduction", "Sales Taxes and Charges", "Purchase Taxes and Charges", "Shipping Rule", |
| 427 | "Landed Cost Item", "Asset Value Adjustment", "Loyalty Program", "Fee Schedule", "Fee Structure", "Stock Reconciliation", |
| 428 | "Travel Request", "Fees", "POS Profile", "Opening Invoice Creation Tool", "Opening Invoice Creation Tool Item", "Subscription", |
Deepesh Garg | c9c8957 | 2021-09-16 19:33:57 +0530 | [diff] [blame] | 429 | "Subscription Plan", "POS Invoice", "POS Invoice Item" |
Glen Whitney | dea6a90 | 2020-11-17 22:16:13 +0000 | [diff] [blame] | 430 | ] |
| 431 | |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 432 | regional_overrides = { |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 433 | 'France': { |
| 434 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.france.utils.test_method' |
| 435 | }, |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 436 | 'India': { |
Nabin Hait | b962fc1 | 2017-07-17 18:02:31 +0530 | [diff] [blame] | 437 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method', |
| 438 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header': 'erpnext.regional.india.utils.get_itemised_tax_breakup_header', |
Shreya Shah | 4fa600a | 2018-06-05 11:27:53 +0530 | [diff] [blame] | 439 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data': 'erpnext.regional.india.utils.get_itemised_tax_breakup_data', |
Ranjith Kurungadam | a8e047a | 2018-06-14 17:56:16 +0530 | [diff] [blame] | 440 | 'erpnext.accounts.party.get_regional_address_details': 'erpnext.regional.india.utils.get_regional_address_details', |
Deepesh Garg | 6a5ef26 | 2021-02-19 14:30:23 +0530 | [diff] [blame] | 441 | 'erpnext.controllers.taxes_and_totals.get_regional_round_off_accounts': 'erpnext.regional.india.utils.get_regional_round_off_accounts', |
Ranjith Kurungadam | a8e047a | 2018-06-14 17:56:16 +0530 | [diff] [blame] | 442 | 'erpnext.hr.utils.calculate_annual_eligible_hra_exemption': 'erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption', |
Deepesh Garg | 3c004ad | 2020-07-02 21:18:29 +0530 | [diff] [blame] | 443 | 'erpnext.hr.utils.calculate_hra_exemption_for_period': 'erpnext.regional.india.utils.calculate_hra_exemption_for_period', |
Saqib Ansari | c5782b0 | 2022-01-27 20:09:56 +0530 | [diff] [blame] | 444 | 'erpnext.controllers.accounts_controller.validate_einvoice_fields': 'erpnext.regional.india.e_invoice.utils.validate_einvoice_fields', |
Saqib | 3a50490 | 2021-08-03 15:57:11 +0530 | [diff] [blame] | 445 | 'erpnext.assets.doctype.asset.asset.get_depreciation_amount': 'erpnext.regional.india.utils.get_depreciation_amount', |
| 446 | 'erpnext.stock.doctype.item.item.set_item_tax_from_hsn_code': 'erpnext.regional.india.utils.set_item_tax_from_hsn_code' |
rohitwaghchaure | d452668 | 2017-12-28 14:20:13 +0530 | [diff] [blame] | 447 | }, |
| 448 | 'United Arab Emirates': { |
hasnain2808 | 7b7a8e1 | 2020-09-09 20:54:30 +0530 | [diff] [blame] | 449 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data', |
| 450 | 'erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries': 'erpnext.regional.united_arab_emirates.utils.make_regional_gl_entries', |
rohitwaghchaure | d452668 | 2017-12-28 14:20:13 +0530 | [diff] [blame] | 451 | }, |
| 452 | 'Saudi Arabia': { |
| 453 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data' |
scmmishra | 14d70ce | 2019-03-14 12:31:25 +0530 | [diff] [blame] | 454 | }, |
| 455 | 'Italy': { |
| 456 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.italy.utils.update_itemised_tax_data', |
| 457 | 'erpnext.controllers.accounts_controller.validate_regional': 'erpnext.regional.italy.utils.sales_invoice_validate', |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 458 | } |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 459 | } |
Mangesh-Khairnar | 2ffa87e | 2019-03-20 13:25:48 +0530 | [diff] [blame] | 460 | user_privacy_documents = [ |
| 461 | { |
| 462 | 'doctype': 'Lead', |
| 463 | 'match_field': 'email_id', |
| 464 | 'personal_fields': ['phone', 'mobile_no', 'fax', 'website', 'lead_name'], |
| 465 | }, |
| 466 | { |
| 467 | 'doctype': 'Opportunity', |
| 468 | 'match_field': 'contact_email', |
| 469 | 'personal_fields': ['contact_mobile', 'contact_display', 'customer_name'], |
| 470 | } |
John Clarke | b733984 | 2019-04-04 23:32:25 -0600 | [diff] [blame] | 471 | ] |
Himanshu | 83b0b2a | 2019-09-27 00:59:48 +0530 | [diff] [blame] | 472 | |
Himanshu Warekar | 21abc3a | 2019-09-30 13:40:02 +0530 | [diff] [blame] | 473 | # ERPNext doctypes for Global Search |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 474 | global_search_doctypes = { |
| 475 | "Default": [ |
| 476 | {"doctype": "Customer", "index": 0}, |
| 477 | {"doctype": "Supplier", "index": 1}, |
| 478 | {"doctype": "Item", "index": 2}, |
| 479 | {"doctype": "Warehouse", "index": 3}, |
| 480 | {"doctype": "Account", "index": 4}, |
| 481 | {"doctype": "Employee", "index": 5}, |
| 482 | {"doctype": "BOM", "index": 6}, |
| 483 | {"doctype": "Sales Invoice", "index": 7}, |
| 484 | {"doctype": "Sales Order", "index": 8}, |
| 485 | {"doctype": "Quotation", "index": 9}, |
| 486 | {"doctype": "Work Order", "index": 10}, |
Walstan Baptista | 0baebbd | 2020-12-08 09:43:29 +0530 | [diff] [blame] | 487 | {"doctype": "Purchase Order", "index": 11}, |
| 488 | {"doctype": "Purchase Receipt", "index": 12}, |
| 489 | {"doctype": "Purchase Invoice", "index": 13}, |
| 490 | {"doctype": "Delivery Note", "index": 14}, |
| 491 | {"doctype": "Stock Entry", "index": 15}, |
| 492 | {"doctype": "Material Request", "index": 16}, |
| 493 | {"doctype": "Delivery Trip", "index": 17}, |
| 494 | {"doctype": "Pick List", "index": 18}, |
| 495 | {"doctype": "Salary Slip", "index": 19}, |
| 496 | {"doctype": "Leave Application", "index": 20}, |
| 497 | {"doctype": "Expense Claim", "index": 21}, |
| 498 | {"doctype": "Payment Entry", "index": 22}, |
| 499 | {"doctype": "Lead", "index": 23}, |
| 500 | {"doctype": "Opportunity", "index": 24}, |
| 501 | {"doctype": "Item Price", "index": 25}, |
| 502 | {"doctype": "Purchase Taxes and Charges Template", "index": 26}, |
| 503 | {"doctype": "Sales Taxes and Charges", "index": 27}, |
| 504 | {"doctype": "Asset", "index": 28}, |
| 505 | {"doctype": "Project", "index": 29}, |
| 506 | {"doctype": "Task", "index": 30}, |
| 507 | {"doctype": "Timesheet", "index": 31}, |
| 508 | {"doctype": "Issue", "index": 32}, |
| 509 | {"doctype": "Serial No", "index": 33}, |
| 510 | {"doctype": "Batch", "index": 34}, |
| 511 | {"doctype": "Branch", "index": 35}, |
| 512 | {"doctype": "Department", "index": 36}, |
| 513 | {"doctype": "Employee Grade", "index": 37}, |
| 514 | {"doctype": "Designation", "index": 38}, |
| 515 | {"doctype": "Job Opening", "index": 39}, |
| 516 | {"doctype": "Job Applicant", "index": 40}, |
| 517 | {"doctype": "Job Offer", "index": 41}, |
| 518 | {"doctype": "Salary Structure Assignment", "index": 42}, |
| 519 | {"doctype": "Appraisal", "index": 43}, |
| 520 | {"doctype": "Loan", "index": 44}, |
| 521 | {"doctype": "Maintenance Schedule", "index": 45}, |
| 522 | {"doctype": "Maintenance Visit", "index": 46}, |
| 523 | {"doctype": "Warranty Claim", "index": 47}, |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 524 | ], |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 525 | "Education": [ |
| 526 | {'doctype': 'Article', 'index': 1}, |
| 527 | {'doctype': 'Video', 'index': 2}, |
| 528 | {'doctype': 'Topic', 'index': 3}, |
| 529 | {'doctype': 'Course', 'index': 4}, |
| 530 | {'doctype': 'Program', 'index': 5}, |
| 531 | {'doctype': 'Quiz', 'index': 6}, |
| 532 | {'doctype': 'Question', 'index': 7}, |
| 533 | {'doctype': 'Fee Schedule', 'index': 8}, |
| 534 | {'doctype': 'Fee Structure', 'index': 9}, |
| 535 | {'doctype': 'Fees', 'index': 10}, |
| 536 | {'doctype': 'Student Group', 'index': 11}, |
| 537 | {'doctype': 'Student', 'index': 12}, |
| 538 | {'doctype': 'Instructor', 'index': 13}, |
| 539 | {'doctype': 'Course Activity', 'index': 14}, |
| 540 | {'doctype': 'Quiz Activity', 'index': 15}, |
| 541 | {'doctype': 'Course Enrollment', 'index': 16}, |
| 542 | {'doctype': 'Program Enrollment', 'index': 17}, |
| 543 | {'doctype': 'Student Language', 'index': 18}, |
| 544 | {'doctype': 'Student Applicant', 'index': 19}, |
| 545 | {'doctype': 'Assessment Result', 'index': 20}, |
| 546 | {'doctype': 'Assessment Plan', 'index': 21}, |
| 547 | {'doctype': 'Grading Scale', 'index': 22}, |
| 548 | {'doctype': 'Guardian', 'index': 23}, |
| 549 | {'doctype': 'Student Leave Application', 'index': 24}, |
| 550 | {'doctype': 'Student Log', 'index': 25}, |
| 551 | {'doctype': 'Room', 'index': 26}, |
| 552 | {'doctype': 'Course Schedule', 'index': 27}, |
| 553 | {'doctype': 'Student Attendance', 'index': 28}, |
| 554 | {'doctype': 'Announcement', 'index': 29}, |
| 555 | {'doctype': 'Student Category', 'index': 30}, |
| 556 | {'doctype': 'Assessment Group', 'index': 31}, |
| 557 | {'doctype': 'Student Batch Name', 'index': 32}, |
| 558 | {'doctype': 'Assessment Criteria', 'index': 33}, |
| 559 | {'doctype': 'Academic Year', 'index': 34}, |
| 560 | {'doctype': 'Academic Term', 'index': 35}, |
| 561 | {'doctype': 'School House', 'index': 36}, |
| 562 | {'doctype': 'Student Admission', 'index': 37}, |
| 563 | {'doctype': 'Fee Category', 'index': 38}, |
| 564 | {'doctype': 'Assessment Code', 'index': 39}, |
| 565 | {'doctype': 'Discussion', 'index': 40}, |
| 566 | ], |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 567 | "Non Profit": [ |
| 568 | {'doctype': 'Certified Consultant', 'index': 1}, |
| 569 | {'doctype': 'Certification Application', 'index': 2}, |
| 570 | {'doctype': 'Volunteer', 'index': 3}, |
| 571 | {'doctype': 'Membership', 'index': 4}, |
| 572 | {'doctype': 'Member', 'index': 5}, |
| 573 | {'doctype': 'Donor', 'index': 6}, |
| 574 | {'doctype': 'Chapter', 'index': 7}, |
| 575 | {'doctype': 'Grant Application', 'index': 8}, |
| 576 | {'doctype': 'Volunteer Type', 'index': 9}, |
| 577 | {'doctype': 'Donor Type', 'index': 10}, |
| 578 | {'doctype': 'Membership Type', 'index': 11} |
| 579 | ], |
Faris Ansari | 22bcad9 | 2020-10-16 15:28:12 +0530 | [diff] [blame] | 580 | } |
leela | 3234df5 | 2021-01-12 23:31:40 +0530 | [diff] [blame] | 581 | |
| 582 | additional_timeline_content = { |
| 583 | '*': ['erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs'] |
| 584 | } |