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