Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 1 | app_name = "erpnext" |
| 2 | app_title = "ERPNext" |
Rushabh Mehta | ba02ce6 | 2015-07-22 15:07:25 +0530 | [diff] [blame] | 3 | app_publisher = "Frappe Technologies Pvt. Ltd." |
Rushabh Mehta | edc8ab0 | 2015-11-18 16:48:19 +0530 | [diff] [blame] | 4 | app_description = """ERP made simple""" |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 5 | app_icon = "fa fa-th" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 6 | app_color = "#e74c3c" |
Nabin Hait | 7ba4d02 | 2015-11-05 16:55:10 +0530 | [diff] [blame] | 7 | app_email = "info@erpnext.com" |
| 8 | app_license = "GNU General Public License (v3)" |
Rushabh Mehta | 7d23e42 | 2015-11-02 10:45:18 +0530 | [diff] [blame] | 9 | source_link = "https://github.com/frappe/erpnext" |
Shivam Mishra | 8261df2 | 2020-10-19 13:52:35 +0530 | [diff] [blame] | 10 | app_logo_url = "/assets/erpnext/images/erpnext-logo.svg" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 11 | |
scmmishra | 734d3e0 | 2018-11-03 18:03:35 +0530 | [diff] [blame] | 12 | |
Ankush Menat | 95e41b0 | 2022-05-08 22:04:00 +0530 | [diff] [blame] | 13 | develop_version = "14.x.x-develop" |
Rushabh Mehta | db206f2 | 2017-03-10 09:38:58 +0530 | [diff] [blame] | 14 | |
Faris Ansari | 464d838 | 2021-05-07 14:53:42 +0530 | [diff] [blame] | 15 | app_include_js = "erpnext.bundle.js" |
| 16 | app_include_css = "erpnext.bundle.css" |
| 17 | web_include_js = "erpnext-web.bundle.js" |
| 18 | web_include_css = "erpnext-web.bundle.css" |
Suraj Shetty | 815aad1 | 2021-05-23 13:31:54 +0530 | [diff] [blame] | 19 | email_css = "email_erpnext.bundle.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 20 | |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 21 | doctype_js = { |
Abhishek Balam | 346ca56 | 2020-10-14 18:11:04 +0530 | [diff] [blame] | 22 | "Address": "public/js/address.js", |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 23 | "Communication": "public/js/communication.js", |
Faris Ansari | 5f8b358 | 2019-03-19 11:48:32 +0530 | [diff] [blame] | 24 | "Event": "public/js/event.js", |
Noah Jacob | cbddeda | 2021-07-26 12:54:35 +0530 | [diff] [blame] | 25 | "Newsletter": "public/js/newsletter.js", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 26 | "Contact": "public/js/contact.js", |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 27 | } |
| 28 | |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 29 | override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"} |
Abhishek Balam | 6e9e7b4 | 2020-10-14 19:31:37 +0530 | [diff] [blame] | 30 | |
Akhil Narang | 3effaf2 | 2024-03-27 11:37:26 +0530 | [diff] [blame] | 31 | override_whitelisted_methods = {"frappe.www.contact.send_message": "erpnext.templates.utils.send_message"} |
Ritwik Puri | f193393 | 2023-04-05 12:04:36 +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" |
Smit Vora | 877cc72 | 2023-12-31 10:54:07 +0530 | [diff] [blame] | 38 | setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_demo" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 39 | 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] | 40 | |
Ankush Menat | 1e8ee93 | 2023-06-12 19:20:52 +0530 | [diff] [blame] | 41 | before_install = [ |
| 42 | "erpnext.setup.install.check_setup_wizard_not_completed", |
Ankush Menat | 1e8ee93 | 2023-06-12 19:20:52 +0530 | [diff] [blame] | 43 | ] |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 44 | after_install = "erpnext.setup.install.after_install" |
| 45 | |
| 46 | boot_session = "erpnext.startup.boot.boot_session" |
| 47 | notification_config = "erpnext.startup.notifications.get_notification_config" |
Rushabh Mehta | 05ce7ec | 2017-02-22 16:15:43 +0530 | [diff] [blame] | 48 | get_help_messages = "erpnext.utilities.activation.get_help_messages" |
prssanna | 3f1444e | 2019-09-24 13:04:53 +0530 | [diff] [blame] | 49 | leaderboards = "erpnext.startup.leaderboard.get_leaderboards" |
Prssanna Desai | 82ddef5 | 2020-06-18 18:18:41 +0530 | [diff] [blame] | 50 | filters_config = "erpnext.startup.filters.get_filters_config" |
prssanna | b57b3c9 | 2020-10-22 15:37:47 +0530 | [diff] [blame] | 51 | additional_print_settings = "erpnext.controllers.print_settings.get_print_settings" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 52 | |
Sabu Siyad | f900a78 | 2023-10-17 17:05:44 +0530 | [diff] [blame] | 53 | on_session_creation = "erpnext.portal.utils.create_customer_or_supplier" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 54 | |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 55 | treeviews = [ |
| 56 | "Account", |
| 57 | "Cost Center", |
| 58 | "Warehouse", |
| 59 | "Item Group", |
| 60 | "Customer Group", |
Deepesh Garg | 0a67b02 | 2022-04-16 19:43:59 +0530 | [diff] [blame] | 61 | "Supplier Group", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 62 | "Sales Person", |
| 63 | "Territory", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 64 | "Department", |
| 65 | ] |
Rushabh Mehta | 764aa92 | 2016-05-02 13:28:46 +0530 | [diff] [blame] | 66 | |
Deepesh Garg | 77a2957 | 2023-06-16 13:43:55 +0530 | [diff] [blame] | 67 | demo_master_doctypes = [ |
| 68 | "item_group", |
| 69 | "item", |
| 70 | "customer_group", |
| 71 | "supplier_group", |
| 72 | "customer", |
| 73 | "supplier", |
| 74 | ] |
Ankush Menat | 3a21c90 | 2023-08-10 15:48:57 +0530 | [diff] [blame] | 75 | demo_transaction_doctypes = [ |
Deepesh Garg | 567f4c3 | 2023-08-10 21:46:34 +0530 | [diff] [blame] | 76 | "purchase_order", |
| 77 | "sales_order", |
Ankush Menat | 3a21c90 | 2023-08-10 15:48:57 +0530 | [diff] [blame] | 78 | ] |
Deepesh Garg | 8ef257a | 2023-06-14 12:54:10 +0530 | [diff] [blame] | 79 | |
Rohit Waghchaure | bb95451 | 2023-06-02 00:11:43 +0530 | [diff] [blame] | 80 | jinja = { |
| 81 | "methods": [ |
| 82 | "erpnext.stock.serial_batch_bundle.get_serial_or_batch_nos", |
| 83 | ], |
| 84 | } |
| 85 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 86 | # website |
Shariq Ansari | 9aa6f52 | 2021-09-14 12:49:08 +0530 | [diff] [blame] | 87 | 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] | 88 | |
Kitti U. @ Ecosoft | 2607847 | 2023-07-17 11:44:37 +0700 | [diff] [blame] | 89 | calendars = ["Task", "Work Order", "Sales Order", "Holiday List", "ToDo"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 90 | |
Sabu Siyad | f900a78 | 2023-10-17 17:05:44 +0530 | [diff] [blame] | 91 | website_generators = ["BOM", "Sales Partner"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 92 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 93 | website_context = { |
Rucha Mahabal | 01bea14 | 2021-10-04 09:58:38 +0530 | [diff] [blame] | 94 | "favicon": "/assets/erpnext/images/erpnext-favicon.svg", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 95 | "splash_image": "/assets/erpnext/images/erpnext-logo.svg", |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 96 | } |
| 97 | |
Rucha Mahabal | 108cce2 | 2022-07-07 19:00:19 +0530 | [diff] [blame] | 98 | # nosemgrep |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 99 | website_route_rules = [ |
| 100 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 101 | { |
| 102 | "from_route": "/orders/<path:name>", |
| 103 | "to_route": "order", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 104 | "defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 105 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 106 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 107 | { |
| 108 | "from_route": "/invoices/<path:name>", |
| 109 | "to_route": "order", |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 110 | "defaults": { |
| 111 | "doctype": "Sales Invoice", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 112 | "parents": [{"label": "Invoices", "route": "invoices"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 113 | }, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 114 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 115 | {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 116 | { |
| 117 | "from_route": "/supplier-quotations/<path:name>", |
| 118 | "to_route": "order", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 119 | "defaults": { |
| 120 | "doctype": "Supplier Quotation", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 121 | "parents": [{"label": "Supplier Quotation", "route": "supplier-quotations"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 122 | }, |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 123 | }, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 124 | {"from_route": "/purchase-orders", "to_route": "Purchase Order"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 125 | { |
| 126 | "from_route": "/purchase-orders/<path:name>", |
| 127 | "to_route": "order", |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 128 | "defaults": { |
| 129 | "doctype": "Purchase Order", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 130 | "parents": [{"label": "Purchase Order", "route": "purchase-orders"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 131 | }, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 132 | }, |
| 133 | {"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 134 | { |
| 135 | "from_route": "/purchase-invoices/<path:name>", |
| 136 | "to_route": "order", |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 137 | "defaults": { |
| 138 | "doctype": "Purchase Invoice", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 139 | "parents": [{"label": "Purchase Invoice", "route": "purchase-invoices"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 140 | }, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 141 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 142 | {"from_route": "/quotations", "to_route": "Quotation"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 143 | { |
| 144 | "from_route": "/quotations/<path:name>", |
| 145 | "to_route": "order", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 146 | "defaults": { |
| 147 | "doctype": "Quotation", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 148 | "parents": [{"label": "Quotations", "route": "quotations"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 149 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 150 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 151 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 152 | { |
| 153 | "from_route": "/shipments/<path:name>", |
| 154 | "to_route": "order", |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 155 | "defaults": { |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 156 | "doctype": "Delivery Note", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 157 | "parents": [{"label": "Shipments", "route": "shipments"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 158 | }, |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 159 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 160 | {"from_route": "/rfq", "to_route": "Request for Quotation"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 161 | { |
| 162 | "from_route": "/rfq/<path:name>", |
| 163 | "to_route": "rfq", |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 164 | "defaults": { |
| 165 | "doctype": "Request for Quotation", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 166 | "parents": [{"label": "Request for Quotation", "route": "rfq"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 167 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 168 | }, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 169 | {"from_route": "/addresses", "to_route": "Address"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 170 | { |
| 171 | "from_route": "/addresses/<path:name>", |
| 172 | "to_route": "addresses", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 173 | "defaults": {"doctype": "Address", "parents": [{"label": "Addresses", "route": "addresses"}]}, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 174 | }, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 175 | {"from_route": "/boms", "to_route": "BOM"}, |
| 176 | {"from_route": "/timesheets", "to_route": "Timesheet"}, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 177 | {"from_route": "/material-requests", "to_route": "Material Request"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 178 | { |
| 179 | "from_route": "/material-requests/<path:name>", |
| 180 | "to_route": "material_request_info", |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 181 | "defaults": { |
| 182 | "doctype": "Material Request", |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 183 | "parents": [{"label": "Material Request", "route": "material-requests"}], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 184 | }, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 185 | }, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 186 | {"from_route": "/project", "to_route": "Project"}, |
Saurabh | 7cc99ab | 2022-11-21 17:41:42 +0530 | [diff] [blame] | 187 | {"from_route": "/tasks", "to_route": "Task"}, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 188 | ] |
| 189 | |
Rushabh Mehta | b9cdb05 | 2017-03-08 12:33:43 +0530 | [diff] [blame] | 190 | standard_portal_menu_items = [ |
Gursheen Anand | 5d7dd9b | 2023-07-20 18:20:53 +0530 | [diff] [blame] | 191 | {"title": "Projects", "route": "/project", "reference_doctype": "Project", "role": "Customer"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 192 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 193 | "title": "Request for Quotations", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 194 | "route": "/rfq", |
| 195 | "reference_doctype": "Request for Quotation", |
| 196 | "role": "Supplier", |
| 197 | }, |
| 198 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 199 | "title": "Supplier Quotation", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 200 | "route": "/supplier-quotations", |
| 201 | "reference_doctype": "Supplier Quotation", |
| 202 | "role": "Supplier", |
| 203 | }, |
| 204 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 205 | "title": "Purchase Orders", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 206 | "route": "/purchase-orders", |
| 207 | "reference_doctype": "Purchase Order", |
| 208 | "role": "Supplier", |
| 209 | }, |
| 210 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 211 | "title": "Purchase Invoices", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 212 | "route": "/purchase-invoices", |
| 213 | "reference_doctype": "Purchase Invoice", |
| 214 | "role": "Supplier", |
| 215 | }, |
| 216 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 217 | "title": "Quotations", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 218 | "route": "/quotations", |
| 219 | "reference_doctype": "Quotation", |
| 220 | "role": "Customer", |
| 221 | }, |
| 222 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 223 | "title": "Orders", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 224 | "route": "/orders", |
| 225 | "reference_doctype": "Sales Order", |
| 226 | "role": "Customer", |
| 227 | }, |
| 228 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 229 | "title": "Invoices", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 230 | "route": "/invoices", |
| 231 | "reference_doctype": "Sales Invoice", |
| 232 | "role": "Customer", |
| 233 | }, |
| 234 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 235 | "title": "Shipments", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 236 | "route": "/shipments", |
| 237 | "reference_doctype": "Delivery Note", |
| 238 | "role": "Customer", |
| 239 | }, |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 240 | {"title": "Issues", "route": "/issues", "reference_doctype": "Issue", "role": "Customer"}, |
| 241 | {"title": "Addresses", "route": "/addresses", "reference_doctype": "Address"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 242 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 243 | "title": "Timesheets", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 244 | "route": "/timesheets", |
| 245 | "reference_doctype": "Timesheet", |
| 246 | "role": "Customer", |
| 247 | }, |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 248 | {"title": "Newsletter", "route": "/newsletters", "reference_doctype": "Newsletter"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 249 | { |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 250 | "title": "Material Request", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 251 | "route": "/material-requests", |
| 252 | "reference_doctype": "Material Request", |
| 253 | "role": "Customer", |
| 254 | }, |
Ankush Menat | 75983ce | 2022-11-05 18:49:15 +0530 | [diff] [blame] | 255 | {"title": "Appointment Booking", "route": "/book_appointment"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 256 | ] |
| 257 | |
Suraj Shetty | f1ffdb3 | 2019-06-07 12:48:13 +0530 | [diff] [blame] | 258 | sounds = [ |
| 259 | {"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2}, |
| 260 | {"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2}, |
| 261 | ] |
| 262 | |
Akhil Narang | 3effaf2 | 2024-03-27 11:37:26 +0530 | [diff] [blame] | 263 | has_upload_permission = {"Employee": "erpnext.setup.doctype.employee.employee.has_upload_permission"} |
shariquerik | 1989375 | 2021-03-26 16:34:22 +0530 | [diff] [blame] | 264 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 265 | has_website_permission = { |
| 266 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 267 | "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 268 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 269 | "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 270 | "Purchase Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 271 | "Purchase Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 272 | "Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 273 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 274 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission", |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 275 | "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Gursheen Anand | 5d7dd9b | 2023-07-20 18:20:53 +0530 | [diff] [blame] | 276 | "Project": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 277 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 278 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 279 | before_tests = "erpnext.setup.utils.before_tests" |
| 280 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 281 | |
mergify[bot] | b4db5e9 | 2023-07-18 17:40:49 +0530 | [diff] [blame] | 282 | period_closing_doctypes = [ |
| 283 | "Sales Invoice", |
| 284 | "Purchase Invoice", |
| 285 | "Journal Entry", |
| 286 | "Bank Clearance", |
| 287 | "Stock Entry", |
| 288 | "Dunning", |
| 289 | "Invoice Discounting", |
| 290 | "Payment Entry", |
| 291 | "Period Closing Voucher", |
| 292 | "Process Deferred Accounting", |
| 293 | "Asset", |
| 294 | "Asset Capitalization", |
| 295 | "Asset Repair", |
| 296 | "Delivery Note", |
| 297 | "Landed Cost Voucher", |
| 298 | "Purchase Receipt", |
| 299 | "Stock Reconciliation", |
| 300 | "Subcontracting Receipt", |
| 301 | ] |
| 302 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 303 | doc_events = { |
Rucha Mahabal | c91e03c | 2020-11-28 20:24:06 +0530 | [diff] [blame] | 304 | "*": { |
ruthra kumar | ec194ef | 2024-02-07 20:54:29 +0530 | [diff] [blame] | 305 | "validate": [ |
| 306 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.apply", |
| 307 | "erpnext.setup.doctype.transaction_deletion_record.transaction_deletion_record.check_for_running_deletion_job", |
| 308 | ], |
Rucha Mahabal | c91e03c | 2020-11-28 20:24:06 +0530 | [diff] [blame] | 309 | }, |
mergify[bot] | b4db5e9 | 2023-07-18 17:40:49 +0530 | [diff] [blame] | 310 | tuple(period_closing_doctypes): { |
| 311 | "validate": "erpnext.accounts.doctype.accounting_period.accounting_period.validate_accounting_period_on_doc_save", |
| 312 | }, |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 313 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 314 | "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] | 315 | "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] | 316 | }, |
| 317 | "User": { |
KanchanChauhan | 1dc26b1 | 2017-06-13 15:26:35 +0530 | [diff] [blame] | 318 | "after_insert": "frappe.contacts.doctype.contact.contact.update_contact", |
Rucha Mahabal | 3fe2ef6 | 2022-06-15 12:43:45 +0530 | [diff] [blame] | 319 | "validate": "erpnext.setup.doctype.employee.employee.validate_employee_role", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 320 | "on_update": [ |
Rucha Mahabal | 3fe2ef6 | 2022-06-15 12:43:45 +0530 | [diff] [blame] | 321 | "erpnext.setup.doctype.employee.employee.update_user_permissions", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 322 | "erpnext.portal.utils.set_default_role", |
| 323 | ], |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 324 | }, |
Himanshu | ec25d59 | 2021-06-14 19:05:52 +0530 | [diff] [blame] | 325 | "Communication": { |
Ganga Manoj | f4fc138 | 2021-07-14 11:43:10 +0530 | [diff] [blame] | 326 | "on_update": [ |
Saqib Ansari | c1d8877 | 2021-12-06 14:34:59 +0530 | [diff] [blame] | 327 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.on_communication_update", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 328 | "erpnext.support.doctype.issue.issue.set_first_response_time", |
Nabin Hait | f904ac5 | 2022-06-10 11:15:22 +0530 | [diff] [blame] | 329 | ], |
| 330 | "after_insert": "erpnext.crm.utils.link_communications_with_prospect", |
| 331 | }, |
| 332 | "Event": { |
| 333 | "after_insert": "erpnext.crm.utils.link_events_with_prospect", |
Himanshu | ec25d59 | 2021-06-14 19:05:52 +0530 | [diff] [blame] | 334 | }, |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 335 | "Sales Invoice": { |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 336 | "on_submit": [ |
| 337 | "erpnext.regional.create_transaction_log", |
| 338 | "erpnext.regional.italy.utils.sales_invoice_on_submit", |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 339 | ], |
Sankara Subramanian V | a06d240 | 2023-02-21 22:52:20 +0530 | [diff] [blame] | 340 | "on_cancel": ["erpnext.regional.italy.utils.sales_invoice_on_cancel"], |
Deepesh Garg | 4382040 | 2021-11-29 18:25:47 +0530 | [diff] [blame] | 341 | "on_trash": "erpnext.regional.check_deletion_permission", |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 342 | }, |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 343 | "Purchase Invoice": { |
hasnain2808 | 7b7a8e1 | 2020-09-09 20:54:30 +0530 | [diff] [blame] | 344 | "validate": [ |
hasnain2808 | 7b7a8e1 | 2020-09-09 20:54:30 +0530 | [diff] [blame] | 345 | "erpnext.regional.united_arab_emirates.utils.update_grand_total_for_rcm", |
Deepesh Garg | 55fe85d | 2021-05-14 12:17:41 +0530 | [diff] [blame] | 346 | "erpnext.regional.united_arab_emirates.utils.validate_returns", |
Deepesh Garg | 55fe85d | 2021-05-14 12:17:41 +0530 | [diff] [blame] | 347 | ] |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 348 | }, |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 349 | "Payment Entry": { |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 350 | "on_submit": [ |
| 351 | "erpnext.regional.create_transaction_log", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 352 | "erpnext.accounts.doctype.dunning.dunning.resolve_dunning", |
| 353 | ], |
marination | c321139 | 2023-06-15 20:04:54 +0530 | [diff] [blame] | 354 | "on_cancel": ["erpnext.accounts.doctype.dunning.dunning.resolve_dunning"], |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 355 | "on_trash": "erpnext.regional.check_deletion_permission", |
Rushabh Mehta | b3c8f44 | 2017-06-21 17:22:38 +0530 | [diff] [blame] | 356 | }, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 357 | "Address": { |
| 358 | "validate": [ |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 359 | "erpnext.regional.italy.utils.set_state_code", |
Rucha Mahabal | 212eb4b | 2021-08-30 13:10:18 +0530 | [diff] [blame] | 360 | ], |
Nabin Hait | 619c42b | 2018-01-10 17:48:03 +0530 | [diff] [blame] | 361 | }, |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 362 | "Contact": { |
| 363 | "on_trash": "erpnext.support.doctype.issue.issue.update_issue", |
leela | 3234df5 | 2021-01-12 23:31:40 +0530 | [diff] [blame] | 364 | "after_insert": "erpnext.telephony.doctype.call_log.call_log.link_existing_conversations", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 365 | "validate": ["erpnext.crm.utils.update_lead_phone_numbers"], |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 366 | }, |
Rucha Mahabal | 9e35bff | 2019-07-12 13:56:36 +0530 | [diff] [blame] | 367 | "Email Unsubscribe": { |
| 368 | "after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient" |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 369 | }, |
Subin Tom | 798b464 | 2021-09-03 12:30:57 +0530 | [diff] [blame] | 370 | "Integration Request": { |
| 371 | "validate": "erpnext.accounts.doctype.payment_request.payment_request.validate_payment" |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 372 | }, |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 373 | } |
| 374 | |
Deepesh Garg | 6270607 | 2023-07-16 12:58:42 +0530 | [diff] [blame] | 375 | # function should expect the variable and doc as arguments |
| 376 | naming_series_variables = { |
| 377 | "FY": "erpnext.accounts.utils.parse_naming_series_variable", |
| 378 | } |
| 379 | |
vishal | dcef798 | 2020-01-13 12:59:52 +0530 | [diff] [blame] | 380 | # On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled. |
| 381 | # to maintain data integrity we exempted payment entry. it will un-link when sales invoice get cancelled. |
| 382 | # 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] | 383 | auto_cancel_exempted_doctypes = [ |
Rucha Mahabal | 4887b69 | 2020-10-23 20:33:30 +0530 | [diff] [blame] | 384 | "Payment Entry", |
vishal | dcef798 | 2020-01-13 12:59:52 +0530 | [diff] [blame] | 385 | ] |
vishal | 70148a6 | 2019-12-02 17:37:46 +0530 | [diff] [blame] | 386 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 387 | scheduler_events = { |
marination | 06ee0ea | 2020-09-07 18:49:06 +0530 | [diff] [blame] | 388 | "cron": { |
Rohit Waghchaure | 2f157fa | 2023-03-06 12:02:35 +0530 | [diff] [blame] | 389 | "0/15 * * * *": [ |
marination | ab2d95a | 2022-05-23 13:00:00 +0530 | [diff] [blame] | 390 | "erpnext.manufacturing.doctype.bom_update_log.bom_update_log.resume_bom_cost_update_jobs", |
ruthra kumar | ed14d1c | 2023-04-22 17:24:35 +0530 | [diff] [blame] | 391 | "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs", |
marination | ab2d95a | 2022-05-23 13:00:00 +0530 | [diff] [blame] | 392 | ], |
marination | 06ee0ea | 2020-09-07 18:49:06 +0530 | [diff] [blame] | 393 | "0/30 * * * *": [ |
Gavin D'souza | 71ac399 | 2020-09-10 13:57:44 +0530 | [diff] [blame] | 394 | "erpnext.utilities.doctype.video.video.update_youtube_data", |
marination | ab2d95a | 2022-05-23 13:00:00 +0530 | [diff] [blame] | 395 | ], |
Ankush Menat | 5d73697 | 2022-06-28 12:22:17 +0530 | [diff] [blame] | 396 | # Hourly but offset by 30 minutes |
| 397 | "30 * * * *": [ |
| 398 | "erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs", |
| 399 | ], |
| 400 | # Daily but offset by 45 minutes |
| 401 | "45 0 * * *": [ |
| 402 | "erpnext.stock.reorder_item.reorder_item", |
| 403 | ], |
marination | 06ee0ea | 2020-09-07 18:49:06 +0530 | [diff] [blame] | 404 | }, |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 405 | "hourly": [ |
Nabin Hait | 34c551d | 2019-07-03 10:34:31 +0530 | [diff] [blame] | 406 | "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.automatic_synchronization", |
Ankush Menat | e36c8ce | 2023-07-28 12:53:22 +0530 | [diff] [blame] | 407 | "erpnext.projects.doctype.project.project.project_status_update_reminder", |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 408 | "erpnext.projects.doctype.project.project.hourly_reminder", |
Himanshu Warekar | 6e6148b | 2019-05-10 23:49:42 +0530 | [diff] [blame] | 409 | "erpnext.projects.doctype.project.project.collect_project_status", |
Rohit Waghchaure | b103b24 | 2021-05-27 17:05:36 +0530 | [diff] [blame] | 410 | ], |
| 411 | "hourly_long": [ |
Mohammed Yusuf Shaikh | a3e69cf | 2022-02-08 01:00:37 +0530 | [diff] [blame] | 412 | "erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries", |
ruthra kumar | fb06ad7 | 2023-11-20 13:26:02 +0530 | [diff] [blame] | 413 | "erpnext.utilities.bulk_transaction.retry", |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 414 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 415 | "daily": [ |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 416 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
mbauskar | e1e25a0 | 2017-02-16 19:36:59 +0530 | [diff] [blame] | 417 | "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity", |
Rohit Waghchaure | 2f1db57 | 2016-11-08 12:39:33 +0530 | [diff] [blame] | 418 | "erpnext.controllers.accounts_controller.update_invoice_status", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 419 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
Nabin Hait | 4fdb052 | 2016-03-09 12:40:56 +0530 | [diff] [blame] | 420 | "erpnext.projects.doctype.task.task.set_tasks_as_overdue", |
Prateeksha Singh | e012e24 | 2017-07-18 10:35:12 +0530 | [diff] [blame] | 421 | "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status", |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 422 | "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards", |
Nabin Hait | adbf8ad | 2017-07-31 20:45:36 +0530 | [diff] [blame] | 423 | "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history", |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 424 | "erpnext.assets.doctype.asset.asset.update_maintenance_status", |
Rohan Bansal | bf0f0aa | 2018-05-23 15:06:45 +0530 | [diff] [blame] | 425 | "erpnext.assets.doctype.asset.asset.make_post_gl_entry", |
Himanshu Mishra | 7aabef2 | 2018-06-28 23:43:23 +0530 | [diff] [blame] | 426 | "erpnext.crm.doctype.contract.contract.update_status_for_contracts", |
Himanshu | 0209ef0 | 2018-12-25 17:42:31 +0530 | [diff] [blame] | 427 | "erpnext.projects.doctype.project.project.update_project_sales_billing", |
Sagar Vora | 4d1a9b1 | 2019-01-22 15:56:39 +0530 | [diff] [blame] | 428 | "erpnext.projects.doctype.project.project.send_project_status_email_to_users", |
Himanshu | f3e5213 | 2019-03-19 16:47:56 +0530 | [diff] [blame] | 429 | "erpnext.quality_management.doctype.quality_review.quality_review.review", |
Himanshu Warekar | cf37e40 | 2019-05-07 10:27:01 +0530 | [diff] [blame] | 430 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.check_agreement_status", |
Rucha Mahabal | b54459e | 2019-07-22 03:23:40 +0530 | [diff] [blame] | 431 | "erpnext.crm.doctype.email_campaign.email_campaign.send_email_to_leads_or_contacts", |
0Pranav | 53b65ab | 2019-11-15 16:42:32 +0530 | [diff] [blame] | 432 | "erpnext.crm.doctype.email_campaign.email_campaign.set_email_campaign_status", |
marination | 8179804 | 2020-04-14 23:05:11 +0530 | [diff] [blame] | 433 | "erpnext.selling.doctype.quotation.quotation.set_expired_status", |
Abhishek Balam | ee5b9c7 | 2020-08-11 16:23:47 +0530 | [diff] [blame] | 434 | "erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status", |
Rucha Mahabal | f1cca59 | 2021-01-21 16:36:15 +0530 | [diff] [blame] | 435 | "erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_auto_email", |
ruthra kumar | 4f51c5a | 2023-07-03 14:35:33 +0530 | [diff] [blame] | 436 | "erpnext.accounts.utils.auto_create_exchange_rate_revaluation_daily", |
ruthra kumar | f96cf11 | 2024-03-27 10:33:54 +0530 | [diff] [blame] | 437 | "erpnext.accounts.utils.run_ledger_health_checks", |
ruthra kumar | 4f51c5a | 2023-07-03 14:35:33 +0530 | [diff] [blame] | 438 | ], |
| 439 | "weekly": [ |
| 440 | "erpnext.accounts.utils.auto_create_exchange_rate_revaluation_weekly", |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 441 | ], |
| 442 | "daily_long": [ |
Sagar Vora | 5a53a4b | 2023-11-27 20:21:19 +0530 | [diff] [blame] | 443 | "erpnext.accounts.doctype.process_subscription.process_subscription.create_subscription_process", |
Gavin D'souza | d38f537 | 2019-10-30 14:43:58 +0530 | [diff] [blame] | 444 | "erpnext.setup.doctype.email_digest.email_digest.send", |
marination | 4283a13 | 2022-03-16 19:45:03 +0530 | [diff] [blame] | 445 | "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.auto_update_latest_price_in_all_boms", |
Nabin Hait | 925b9d9 | 2022-06-27 21:58:19 +0530 | [diff] [blame] | 446 | "erpnext.crm.utils.open_leads_opportunities_based_on_todays_event", |
Anand Baburajan | ad33cd7 | 2023-08-09 20:26:28 +0530 | [diff] [blame] | 447 | "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries", |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 448 | ], |
Nabin Hait | b9b2a06 | 2019-05-01 12:49:44 +0530 | [diff] [blame] | 449 | "monthly_long": [ |
Deepesh Garg | de03d2c | 2020-06-01 11:30:34 +0530 | [diff] [blame] | 450 | "erpnext.accounts.deferred_revenue.process_deferred_accounting", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 451 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 452 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 453 | |
Faris Ansari | 2c5b3e8 | 2017-07-13 18:37:18 +0530 | [diff] [blame] | 454 | email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" |
| 455 | |
Faris Ansari | 40d3ad2 | 2017-07-31 16:16:22 +0530 | [diff] [blame] | 456 | default_mail_footer = """ |
| 457 | <span> |
| 458 | Sent via |
| 459 | <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank"> |
| 460 | ERPNext |
| 461 | </a> |
| 462 | </span> |
| 463 | """ |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 464 | |
Akhil Narang | 3effaf2 | 2024-03-27 11:37:26 +0530 | [diff] [blame] | 465 | get_translated_dict = {("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"} |
Rushabh Mehta | fe027b3 | 2016-03-28 13:21:43 +0530 | [diff] [blame] | 466 | |
| 467 | bot_parsers = [ |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 468 | "erpnext.utilities.bot.FindItemBot", |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 469 | ] |
Anand Doshi | f576f3b | 2016-06-25 19:51:48 +0530 | [diff] [blame] | 470 | |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 471 | get_site_info = "erpnext.utilities.get_site_info" |
Saurabh | 94c666a | 2016-11-08 20:35:50 +0530 | [diff] [blame] | 472 | |
Saurabh | 0d47d51 | 2017-03-14 14:46:05 +0530 | [diff] [blame] | 473 | payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account" |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 474 | |
Himanshu | b84333f | 2020-04-14 13:02:03 +0530 | [diff] [blame] | 475 | communication_doctypes = ["Customer", "Supplier"] |
| 476 | |
ruthra kumar | 9fcd89d | 2024-01-24 13:27:31 +0530 | [diff] [blame] | 477 | advance_payment_receivable_doctypes = ["Sales Order"] |
| 478 | advance_payment_payable_doctypes = ["Purchase Order"] |
Rucha Mahabal | 1ff0e45 | 2022-06-23 16:17:34 +0530 | [diff] [blame] | 479 | |
| 480 | invoice_doctypes = ["Sales Invoice", "Purchase Invoice"] |
| 481 | |
Rucha Mahabal | 466bf99 | 2022-07-01 19:01:17 +0530 | [diff] [blame] | 482 | bank_reconciliation_doctypes = [ |
| 483 | "Payment Entry", |
| 484 | "Journal Entry", |
| 485 | "Purchase Invoice", |
ruthra kumar | b69cdeb | 2024-01-05 15:56:04 +0530 | [diff] [blame] | 486 | "Sales Invoice", |
Rucha Mahabal | 466bf99 | 2022-07-01 19:01:17 +0530 | [diff] [blame] | 487 | ] |
| 488 | |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 489 | accounting_dimension_doctypes = [ |
| 490 | "GL Entry", |
ruthra kumar | 7b1cb67 | 2022-05-16 14:32:58 +0530 | [diff] [blame] | 491 | "Payment Ledger Entry", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 492 | "Sales Invoice", |
| 493 | "Purchase Invoice", |
| 494 | "Payment Entry", |
| 495 | "Asset", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 496 | "Stock Entry", |
| 497 | "Budget", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 498 | "Delivery Note", |
| 499 | "Sales Invoice Item", |
| 500 | "Purchase Invoice Item", |
| 501 | "Purchase Order Item", |
Deepesh Garg | e31db18 | 2023-10-17 18:19:47 +0530 | [diff] [blame] | 502 | "Sales Order Item", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 503 | "Journal Entry Account", |
| 504 | "Material Request Item", |
| 505 | "Delivery Note Item", |
| 506 | "Purchase Receipt Item", |
| 507 | "Stock Entry Detail", |
| 508 | "Payment Entry Deduction", |
| 509 | "Sales Taxes and Charges", |
| 510 | "Purchase Taxes and Charges", |
| 511 | "Shipping Rule", |
| 512 | "Landed Cost Item", |
| 513 | "Asset Value Adjustment", |
ruthra kumar | 452584c | 2022-07-28 07:11:16 +0530 | [diff] [blame] | 514 | "Asset Repair", |
Nabin Hait | fe891aa | 2022-09-30 15:55:41 +0530 | [diff] [blame] | 515 | "Asset Capitalization", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 516 | "Loyalty Program", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 517 | "Stock Reconciliation", |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 518 | "POS Profile", |
| 519 | "Opening Invoice Creation Tool", |
| 520 | "Opening Invoice Creation Tool Item", |
| 521 | "Subscription", |
| 522 | "Subscription Plan", |
| 523 | "POS Invoice", |
| 524 | "POS Invoice Item", |
Deepesh Garg | 82a0635 | 2022-04-26 14:01:13 +0530 | [diff] [blame] | 525 | "Purchase Order", |
| 526 | "Purchase Receipt", |
| 527 | "Sales Order", |
Sagar Sharma | 8704ca7 | 2022-08-18 10:58:33 +0530 | [diff] [blame] | 528 | "Subcontracting Order", |
| 529 | "Subcontracting Order Item", |
| 530 | "Subcontracting Receipt", |
| 531 | "Subcontracting Receipt Item", |
Deepesh Garg | 3fd9520 | 2023-03-23 19:04:48 +0530 | [diff] [blame] | 532 | "Account Closing Balance", |
Deepesh Garg | 089da45 | 2023-11-17 12:37:14 +0530 | [diff] [blame] | 533 | "Supplier Quotation", |
| 534 | "Supplier Quotation Item", |
ruthra kumar | cfb3d87 | 2023-12-14 12:16:50 +0530 | [diff] [blame] | 535 | "Payment Reconciliation", |
| 536 | "Payment Reconciliation Allocation", |
ruthra kumar | e93b4a1 | 2024-04-12 16:51:11 +0530 | [diff] [blame] | 537 | "Payment Request", |
Glen Whitney | dea6a90 | 2020-11-17 22:16:13 +0000 | [diff] [blame] | 538 | ] |
| 539 | |
Rucha Mahabal | 466bf99 | 2022-07-01 19:01:17 +0530 | [diff] [blame] | 540 | get_matching_queries = ( |
| 541 | "erpnext.accounts.doctype.bank_reconciliation_tool.bank_reconciliation_tool.get_matching_queries" |
| 542 | ) |
| 543 | |
Anand Baburajan | 988d755 | 2023-06-30 11:02:49 +0530 | [diff] [blame] | 544 | get_amounts_not_reflected_in_system_for_bank_reconciliation_statement = "erpnext.accounts.report.bank_reconciliation_statement.bank_reconciliation_statement.get_amounts_not_reflected_in_system_for_bank_reconciliation_statement" |
| 545 | |
| 546 | get_payment_entries_for_bank_clearance = ( |
| 547 | "erpnext.accounts.doctype.bank_clearance.bank_clearance.get_payment_entries_for_bank_clearance" |
| 548 | ) |
| 549 | |
| 550 | get_entries_for_bank_clearance_summary = "erpnext.accounts.report.bank_clearance_summary.bank_clearance_summary.get_entries_for_bank_clearance_summary" |
| 551 | |
| 552 | get_entries_for_bank_reconciliation_statement = "erpnext.accounts.report.bank_reconciliation_statement.bank_reconciliation_statement.get_entries_for_bank_reconciliation_statement" |
| 553 | |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 554 | regional_overrides = { |
Akhil Narang | 3effaf2 | 2024-03-27 11:37:26 +0530 | [diff] [blame] | 555 | "France": {"erpnext.tests.test_regional.test_method": "erpnext.regional.france.utils.test_method"}, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 556 | "United Arab Emirates": { |
| 557 | "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data", |
| 558 | "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] | 559 | }, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 560 | "Saudi Arabia": { |
| 561 | "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] | 562 | }, |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 563 | "Italy": { |
| 564 | "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.italy.utils.update_itemised_tax_data", |
| 565 | "erpnext.controllers.accounts_controller.validate_regional": "erpnext.regional.italy.utils.sales_invoice_validate", |
| 566 | }, |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 567 | } |
Mangesh-Khairnar | 2ffa87e | 2019-03-20 13:25:48 +0530 | [diff] [blame] | 568 | user_privacy_documents = [ |
| 569 | { |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 570 | "doctype": "Lead", |
| 571 | "match_field": "email_id", |
| 572 | "personal_fields": ["phone", "mobile_no", "fax", "website", "lead_name"], |
Mangesh-Khairnar | 2ffa87e | 2019-03-20 13:25:48 +0530 | [diff] [blame] | 573 | }, |
| 574 | { |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 575 | "doctype": "Opportunity", |
| 576 | "match_field": "contact_email", |
| 577 | "personal_fields": ["contact_mobile", "contact_display", "customer_name"], |
| 578 | }, |
John Clarke | b733984 | 2019-04-04 23:32:25 -0600 | [diff] [blame] | 579 | ] |
Himanshu | 83b0b2a | 2019-09-27 00:59:48 +0530 | [diff] [blame] | 580 | |
Himanshu Warekar | 21abc3a | 2019-09-30 13:40:02 +0530 | [diff] [blame] | 581 | # ERPNext doctypes for Global Search |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 582 | global_search_doctypes = { |
| 583 | "Default": [ |
| 584 | {"doctype": "Customer", "index": 0}, |
| 585 | {"doctype": "Supplier", "index": 1}, |
| 586 | {"doctype": "Item", "index": 2}, |
| 587 | {"doctype": "Warehouse", "index": 3}, |
| 588 | {"doctype": "Account", "index": 4}, |
| 589 | {"doctype": "Employee", "index": 5}, |
| 590 | {"doctype": "BOM", "index": 6}, |
| 591 | {"doctype": "Sales Invoice", "index": 7}, |
| 592 | {"doctype": "Sales Order", "index": 8}, |
| 593 | {"doctype": "Quotation", "index": 9}, |
| 594 | {"doctype": "Work Order", "index": 10}, |
Walstan Baptista | 0baebbd | 2020-12-08 09:43:29 +0530 | [diff] [blame] | 595 | {"doctype": "Purchase Order", "index": 11}, |
| 596 | {"doctype": "Purchase Receipt", "index": 12}, |
| 597 | {"doctype": "Purchase Invoice", "index": 13}, |
| 598 | {"doctype": "Delivery Note", "index": 14}, |
| 599 | {"doctype": "Stock Entry", "index": 15}, |
| 600 | {"doctype": "Material Request", "index": 16}, |
| 601 | {"doctype": "Delivery Trip", "index": 17}, |
| 602 | {"doctype": "Pick List", "index": 18}, |
Walstan Baptista | 0baebbd | 2020-12-08 09:43:29 +0530 | [diff] [blame] | 603 | {"doctype": "Payment Entry", "index": 22}, |
| 604 | {"doctype": "Lead", "index": 23}, |
| 605 | {"doctype": "Opportunity", "index": 24}, |
| 606 | {"doctype": "Item Price", "index": 25}, |
| 607 | {"doctype": "Purchase Taxes and Charges Template", "index": 26}, |
| 608 | {"doctype": "Sales Taxes and Charges", "index": 27}, |
| 609 | {"doctype": "Asset", "index": 28}, |
| 610 | {"doctype": "Project", "index": 29}, |
| 611 | {"doctype": "Task", "index": 30}, |
| 612 | {"doctype": "Timesheet", "index": 31}, |
| 613 | {"doctype": "Issue", "index": 32}, |
| 614 | {"doctype": "Serial No", "index": 33}, |
| 615 | {"doctype": "Batch", "index": 34}, |
| 616 | {"doctype": "Branch", "index": 35}, |
| 617 | {"doctype": "Department", "index": 36}, |
Walstan Baptista | 0baebbd | 2020-12-08 09:43:29 +0530 | [diff] [blame] | 618 | {"doctype": "Designation", "index": 38}, |
Walstan Baptista | 0baebbd | 2020-12-08 09:43:29 +0530 | [diff] [blame] | 619 | {"doctype": "Maintenance Schedule", "index": 45}, |
| 620 | {"doctype": "Maintenance Visit", "index": 46}, |
| 621 | {"doctype": "Warranty Claim", "index": 47}, |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 622 | ], |
Faris Ansari | 22bcad9 | 2020-10-16 15:28:12 +0530 | [diff] [blame] | 623 | } |
leela | 3234df5 | 2021-01-12 23:31:40 +0530 | [diff] [blame] | 624 | |
Akhil Narang | 3effaf2 | 2024-03-27 11:37:26 +0530 | [diff] [blame] | 625 | additional_timeline_content = {"*": ["erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs"]} |
Ankush Menat | bd9ef74 | 2023-07-16 11:34:42 +0530 | [diff] [blame] | 626 | |
| 627 | |
| 628 | extend_bootinfo = [ |
| 629 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.add_sla_doctypes", |
Richard Case | 525f656 | 2023-12-06 15:18:13 +0000 | [diff] [blame] | 630 | "erpnext.startup.boot.bootinfo", |
Ankush Menat | bd9ef74 | 2023-07-16 11:34:42 +0530 | [diff] [blame] | 631 | ] |
Ankush Menat | 1da9087 | 2023-11-30 13:28:55 +0530 | [diff] [blame] | 632 | |
| 633 | |
| 634 | default_log_clearing_doctypes = { |
| 635 | "Repost Item Valuation": 60, |
| 636 | } |
Ankush Menat | 63313ee | 2023-11-30 13:53:48 +0530 | [diff] [blame] | 637 | |
| 638 | export_python_type_annotations = True |
Smit Vora | f7c9e15 | 2024-04-08 15:47:18 +0530 | [diff] [blame] | 639 | |
| 640 | fields_for_group_similar_items = ["qty", "amount"] |