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