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