blob: 14b76564912b0e44c40ad3b9559da8f7cf3acb7f [file] [log] [blame]
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05301app_name = "erpnext"
2app_title = "ERPNext"
Rushabh Mehtaba02ce62015-07-22 15:07:25 +05303app_publisher = "Frappe Technologies Pvt. Ltd."
Rushabh Mehtaedc8ab02015-11-18 16:48:19 +05304app_description = """ERP made simple"""
Rushabh Mehta2167ff52016-12-07 11:08:48 +05305app_icon = "fa fa-th"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05306app_color = "#e74c3c"
Nabin Hait7ba4d022015-11-05 16:55:10 +05307app_email = "info@erpnext.com"
8app_license = "GNU General Public License (v3)"
Rushabh Mehta7d23e422015-11-02 10:45:18 +05309source_link = "https://github.com/frappe/erpnext"
Shivam Mishra8261df22020-10-19 13:52:35 +053010app_logo_url = "/assets/erpnext/images/erpnext-logo.svg"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053011
scmmishra734d3e02018-11-03 18:03:35 +053012
Ankush Menat95e41b02022-05-08 22:04:00 +053013develop_version = "14.x.x-develop"
Rushabh Mehtadb206f22017-03-10 09:38:58 +053014
Faris Ansari464d8382021-05-07 14:53:42 +053015app_include_js = "erpnext.bundle.js"
16app_include_css = "erpnext.bundle.css"
17web_include_js = "erpnext-web.bundle.js"
18web_include_css = "erpnext-web.bundle.css"
Suraj Shetty815aad12021-05-23 13:31:54 +053019email_css = "email_erpnext.bundle.css"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053020
mbauskarf54b1042017-03-13 16:32:46 +053021doctype_js = {
Abhishek Balam346ca562020-10-14 18:11:04 +053022 "Address": "public/js/address.js",
mbauskarf54b1042017-03-13 16:32:46 +053023 "Communication": "public/js/communication.js",
Faris Ansari5f8b3582019-03-19 11:48:32 +053024 "Event": "public/js/event.js",
Noah Jacobcbddeda2021-07-26 12:54:35 +053025 "Newsletter": "public/js/newsletter.js",
Ankush Menat494bd9e2022-03-28 18:52:46 +053026 "Contact": "public/js/contact.js",
mbauskarf54b1042017-03-13 16:32:46 +053027}
28
Ankush Menat494bd9e2022-03-28 18:52:46 +053029override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
Abhishek Balam6e9e7b42020-10-14 19:31:37 +053030
Ritwik Purif1933932023-04-05 12:04:36 +053031override_whitelisted_methods = {
32 "frappe.www.contact.send_message": "erpnext.templates.utils.send_message"
33}
34
Neil Trini Lasrado771fbb82018-08-24 15:15:56 +053035welcome_email = "erpnext.setup.utils.welcome_email"
36
Rushabh Mehta37b4d752015-11-09 16:53:11 +053037# setup wizard
38setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
Prateeksha Singh8b0b56d2017-12-21 11:55:58 +053039setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
Smit Vora877cc722023-12-31 10:54:07 +053040setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_demo"
Prateeksha Singh95d8fd32017-09-04 11:14:04 +053041setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test"
Rushabh Mehta37b4d752015-11-09 16:53:11 +053042
Ankush Menat1e8ee932023-06-12 19:20:52 +053043before_install = [
44 "erpnext.setup.install.check_setup_wizard_not_completed",
45 "erpnext.setup.install.check_frappe_version",
46]
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053047after_install = "erpnext.setup.install.after_install"
48
49boot_session = "erpnext.startup.boot.boot_session"
50notification_config = "erpnext.startup.notifications.get_notification_config"
Rushabh Mehta05ce7ec2017-02-22 16:15:43 +053051get_help_messages = "erpnext.utilities.activation.get_help_messages"
prssanna3f1444e2019-09-24 13:04:53 +053052leaderboards = "erpnext.startup.leaderboard.get_leaderboards"
Prssanna Desai82ddef52020-06-18 18:18:41 +053053filters_config = "erpnext.startup.filters.get_filters_config"
prssannab57b3c92020-10-22 15:37:47 +053054additional_print_settings = "erpnext.controllers.print_settings.get_print_settings"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053055
Sabu Siyadf900a782023-10-17 17:05:44 +053056on_session_creation = "erpnext.portal.utils.create_customer_or_supplier"
Anand Doshif9fc04c2015-02-23 22:14:12 +053057
Ankush Menat494bd9e2022-03-28 18:52:46 +053058treeviews = [
59 "Account",
60 "Cost Center",
61 "Warehouse",
62 "Item Group",
63 "Customer Group",
Deepesh Garg0a67b022022-04-16 19:43:59 +053064 "Supplier Group",
Ankush Menat494bd9e2022-03-28 18:52:46 +053065 "Sales Person",
66 "Territory",
Ankush Menat494bd9e2022-03-28 18:52:46 +053067 "Department",
68]
Rushabh Mehta764aa922016-05-02 13:28:46 +053069
Deepesh Garg77a29572023-06-16 13:43:55 +053070demo_master_doctypes = [
71 "item_group",
72 "item",
73 "customer_group",
74 "supplier_group",
75 "customer",
76 "supplier",
77]
Ankush Menat3a21c902023-08-10 15:48:57 +053078demo_transaction_doctypes = [
Deepesh Garg567f4c32023-08-10 21:46:34 +053079 "purchase_order",
80 "sales_order",
Ankush Menat3a21c902023-08-10 15:48:57 +053081]
Deepesh Garg8ef257a2023-06-14 12:54:10 +053082
Rohit Waghchaurebb954512023-06-02 00:11:43 +053083jinja = {
84 "methods": [
85 "erpnext.stock.serial_batch_bundle.get_serial_or_batch_nos",
86 ],
87}
88
Anand Doshif9fc04c2015-02-23 22:14:12 +053089# website
Shariq Ansari9aa6f522021-09-14 12:49:08 +053090webform_list_context = "erpnext.controllers.website_list_for_contact.get_webform_list_context"
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053091
Kitti U. @ Ecosoft26078472023-07-17 11:44:37 +070092calendars = ["Task", "Work Order", "Sales Order", "Holiday List", "ToDo"]
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053093
Sabu Siyadf900a782023-10-17 17:05:44 +053094website_generators = ["BOM", "Sales Partner"]
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053095
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053096website_context = {
Rucha Mahabal01bea142021-10-04 09:58:38 +053097 "favicon": "/assets/erpnext/images/erpnext-favicon.svg",
Ankush Menat494bd9e2022-03-28 18:52:46 +053098 "splash_image": "/assets/erpnext/images/erpnext-logo.svg",
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053099}
100
Rucha Mahabal108cce22022-07-07 19:00:19 +0530101# nosemgrep
Anand Doshif9fc04c2015-02-23 22:14:12 +0530102website_route_rules = [
103 {"from_route": "/orders", "to_route": "Sales Order"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530104 {
105 "from_route": "/orders/<path:name>",
106 "to_route": "order",
Ankush Menat75983ce2022-11-05 18:49:15 +0530107 "defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]},
Rushabh Mehta156ce602015-09-11 18:49:59 +0530108 },
Anand Doshif9fc04c2015-02-23 22:14:12 +0530109 {"from_route": "/invoices", "to_route": "Sales Invoice"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530110 {
111 "from_route": "/invoices/<path:name>",
112 "to_route": "order",
Rushabh Mehta156ce602015-09-11 18:49:59 +0530113 "defaults": {
114 "doctype": "Sales Invoice",
Ankush Menat75983ce2022-11-05 18:49:15 +0530115 "parents": [{"label": "Invoices", "route": "invoices"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530116 },
Rushabh Mehta156ce602015-09-11 18:49:59 +0530117 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530118 {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530119 {
120 "from_route": "/supplier-quotations/<path:name>",
121 "to_route": "order",
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530122 "defaults": {
123 "doctype": "Supplier Quotation",
Ankush Menat75983ce2022-11-05 18:49:15 +0530124 "parents": [{"label": "Supplier Quotation", "route": "supplier-quotations"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530125 },
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530126 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530127 {"from_route": "/purchase-orders", "to_route": "Purchase Order"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530128 {
129 "from_route": "/purchase-orders/<path:name>",
130 "to_route": "order",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530131 "defaults": {
132 "doctype": "Purchase Order",
Ankush Menat75983ce2022-11-05 18:49:15 +0530133 "parents": [{"label": "Purchase Order", "route": "purchase-orders"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530134 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530135 },
136 {"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530137 {
138 "from_route": "/purchase-invoices/<path:name>",
139 "to_route": "order",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530140 "defaults": {
141 "doctype": "Purchase Invoice",
Ankush Menat75983ce2022-11-05 18:49:15 +0530142 "parents": [{"label": "Purchase Invoice", "route": "purchase-invoices"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530143 },
Faris Ansari38ac7f72019-10-09 11:41:33 +0530144 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530145 {"from_route": "/quotations", "to_route": "Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530146 {
147 "from_route": "/quotations/<path:name>",
148 "to_route": "order",
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530149 "defaults": {
150 "doctype": "Quotation",
Ankush Menat75983ce2022-11-05 18:49:15 +0530151 "parents": [{"label": "Quotations", "route": "quotations"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530152 },
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530153 },
Anand Doshif9fc04c2015-02-23 22:14:12 +0530154 {"from_route": "/shipments", "to_route": "Delivery Note"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530155 {
156 "from_route": "/shipments/<path:name>",
157 "to_route": "order",
Rushabh Mehta156ce602015-09-11 18:49:59 +0530158 "defaults": {
Anand Doshi4b127402015-11-26 18:22:03 +0530159 "doctype": "Delivery Note",
Ankush Menat75983ce2022-11-05 18:49:15 +0530160 "parents": [{"label": "Shipments", "route": "shipments"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530161 },
Kanchan Chauhan2e8cc892016-02-19 17:27:23 +0530162 },
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530163 {"from_route": "/rfq", "to_route": "Request for Quotation"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530164 {
165 "from_route": "/rfq/<path:name>",
166 "to_route": "rfq",
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530167 "defaults": {
168 "doctype": "Request for Quotation",
Ankush Menat75983ce2022-11-05 18:49:15 +0530169 "parents": [{"label": "Request for Quotation", "route": "rfq"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530170 },
rohitwaghchaurea1064a62016-03-03 14:00:35 +0530171 },
Kanchan Chauhan1605ff02016-07-04 14:28:09 +0530172 {"from_route": "/addresses", "to_route": "Address"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530173 {
174 "from_route": "/addresses/<path:name>",
175 "to_route": "addresses",
Ankush Menat75983ce2022-11-05 18:49:15 +0530176 "defaults": {"doctype": "Address", "parents": [{"label": "Addresses", "route": "addresses"}]},
Kanchan Chauhan1605ff02016-07-04 14:28:09 +0530177 },
Vishal Dhayagudeedb27492017-07-25 10:53:12 +0530178 {"from_route": "/boms", "to_route": "BOM"},
179 {"from_route": "/timesheets", "to_route": "Timesheet"},
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800180 {"from_route": "/material-requests", "to_route": "Material Request"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530181 {
182 "from_route": "/material-requests/<path:name>",
183 "to_route": "material_request_info",
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800184 "defaults": {
185 "doctype": "Material Request",
Ankush Menat75983ce2022-11-05 18:49:15 +0530186 "parents": [{"label": "Material Request", "route": "material-requests"}],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530187 },
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800188 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530189 {"from_route": "/project", "to_route": "Project"},
Saurabh7cc99ab2022-11-21 17:41:42 +0530190 {"from_route": "/tasks", "to_route": "Task"},
Anand Doshif9fc04c2015-02-23 22:14:12 +0530191]
192
Rushabh Mehtab9cdb052017-03-08 12:33:43 +0530193standard_portal_menu_items = [
Gursheen Anand5d7dd9b2023-07-20 18:20:53 +0530194 {"title": "Projects", "route": "/project", "reference_doctype": "Project", "role": "Customer"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530195 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530196 "title": "Request for Quotations",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530197 "route": "/rfq",
198 "reference_doctype": "Request for Quotation",
199 "role": "Supplier",
200 },
201 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530202 "title": "Supplier Quotation",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530203 "route": "/supplier-quotations",
204 "reference_doctype": "Supplier Quotation",
205 "role": "Supplier",
206 },
207 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530208 "title": "Purchase Orders",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530209 "route": "/purchase-orders",
210 "reference_doctype": "Purchase Order",
211 "role": "Supplier",
212 },
213 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530214 "title": "Purchase Invoices",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530215 "route": "/purchase-invoices",
216 "reference_doctype": "Purchase Invoice",
217 "role": "Supplier",
218 },
219 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530220 "title": "Quotations",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530221 "route": "/quotations",
222 "reference_doctype": "Quotation",
223 "role": "Customer",
224 },
225 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530226 "title": "Orders",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530227 "route": "/orders",
228 "reference_doctype": "Sales Order",
229 "role": "Customer",
230 },
231 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530232 "title": "Invoices",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530233 "route": "/invoices",
234 "reference_doctype": "Sales Invoice",
235 "role": "Customer",
236 },
237 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530238 "title": "Shipments",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530239 "route": "/shipments",
240 "reference_doctype": "Delivery Note",
241 "role": "Customer",
242 },
Ankush Menat75983ce2022-11-05 18:49:15 +0530243 {"title": "Issues", "route": "/issues", "reference_doctype": "Issue", "role": "Customer"},
244 {"title": "Addresses", "route": "/addresses", "reference_doctype": "Address"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530245 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530246 "title": "Timesheets",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530247 "route": "/timesheets",
248 "reference_doctype": "Timesheet",
249 "role": "Customer",
250 },
Ankush Menat75983ce2022-11-05 18:49:15 +0530251 {"title": "Newsletter", "route": "/newsletters", "reference_doctype": "Newsletter"},
Ankush Menat494bd9e2022-03-28 18:52:46 +0530252 {
Ankush Menat75983ce2022-11-05 18:49:15 +0530253 "title": "Material Request",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530254 "route": "/material-requests",
255 "reference_doctype": "Material Request",
256 "role": "Customer",
257 },
Ankush Menat75983ce2022-11-05 18:49:15 +0530258 {"title": "Appointment Booking", "route": "/book_appointment"},
Rushabh Mehtafc800b32016-09-23 21:51:51 +0530259]
260
Suraj Shettyf1ffdb32019-06-07 12:48:13 +0530261sounds = [
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 Mahabal85b18e22022-06-10 16:26:07 +0530266has_upload_permission = {
Rucha Mahabal3fe2ef62022-06-15 12:43:45 +0530267 "Employee": "erpnext.setup.doctype.employee.employee.has_upload_permission"
Rucha Mahabal85b18e22022-06-10 16:26:07 +0530268}
shariquerik19893752021-03-26 16:34:22 +0530269
Anand Doshif9fc04c2015-02-23 22:14:12 +0530270has_website_permission = {
271 "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
Makarand Bauskar9306aff2017-07-21 15:19:47 +0530272 "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
Anand Doshif9fc04c2015-02-23 22:14:12 +0530273 "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
Rohit Waghchaure21499e82016-09-21 16:49:58 +0530274 "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
Faris Ansari38ac7f72019-10-09 11:41:33 +0530275 "Purchase Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
276 "Purchase Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
Doridel Cahanap2b14d6a2018-11-13 14:37:16 +0800277 "Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission",
Rushabh Mehtaa33d4682015-06-01 17:15:42 +0530278 "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
Vishal Dhayagudeedb27492017-07-25 10:53:12 +0530279 "Issue": "erpnext.support.doctype.issue.issue.has_website_permission",
Rushabh Mehtaf0569742017-09-13 12:52:30 +0530280 "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission",
Gursheen Anand5d7dd9b2023-07-20 18:20:53 +0530281 "Project": "erpnext.controllers.website_list_for_contact.has_website_permission",
Anand Doshif9fc04c2015-02-23 22:14:12 +0530282}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530283
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530284before_tests = "erpnext.setup.utils.before_tests"
285
Rushabh Mehta308e6ea2015-03-24 17:34:58 +0530286standard_queries = {
Raffael Meyer8c7fa572023-03-24 07:43:53 +0100287 "Customer": "erpnext.controllers.queries.customer_query",
Rushabh Mehta308e6ea2015-03-24 17:34:58 +0530288}
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530289
mergify[bot]b4db5e92023-07-18 17:40:49 +0530290period_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 Mehta4ceb20e2014-05-02 12:14:03 +0530311doc_events = {
Rucha Mahabalc91e03c2020-11-28 20:24:06 +0530312 "*": {
Himanshuec25d592021-06-14 19:05:52 +0530313 "validate": "erpnext.support.doctype.service_level_agreement.service_level_agreement.apply",
Rucha Mahabalc91e03c2020-11-28 20:24:06 +0530314 },
mergify[bot]b4db5e92023-07-18 17:40:49 +0530315 tuple(period_closing_doctypes): {
316 "validate": "erpnext.accounts.doctype.accounting_period.accounting_period.validate_accounting_period_on_doc_save",
317 },
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530318 "Stock Entry": {
Nabin Hait4acd4312014-11-04 15:32:31 +0530319 "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530320 "on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
Anand Doshi648062d2014-05-05 16:46:14 +0530321 },
322 "User": {
KanchanChauhan1dc26b12017-06-13 15:26:35 +0530323 "after_insert": "frappe.contacts.doctype.contact.contact.update_contact",
Rucha Mahabal3fe2ef62022-06-15 12:43:45 +0530324 "validate": "erpnext.setup.doctype.employee.employee.validate_employee_role",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530325 "on_update": [
Rucha Mahabal3fe2ef62022-06-15 12:43:45 +0530326 "erpnext.setup.doctype.employee.employee.update_user_permissions",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530327 "erpnext.portal.utils.set_default_role",
328 ],
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530329 },
Himanshuec25d592021-06-14 19:05:52 +0530330 "Communication": {
Ganga Manojf4fc1382021-07-14 11:43:10 +0530331 "on_update": [
Saqib Ansaric1d88772021-12-06 14:34:59 +0530332 "erpnext.support.doctype.service_level_agreement.service_level_agreement.on_communication_update",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530333 "erpnext.support.doctype.issue.issue.set_first_response_time",
Nabin Haitf904ac52022-06-10 11:15:22 +0530334 ],
335 "after_insert": "erpnext.crm.utils.link_communications_with_prospect",
336 },
337 "Event": {
338 "after_insert": "erpnext.crm.utils.link_events_with_prospect",
Himanshuec25d592021-06-14 19:05:52 +0530339 },
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100340 "Sales Invoice": {
vishdhad3ec1c12020-03-24 11:31:41 +0530341 "on_submit": [
342 "erpnext.regional.create_transaction_log",
343 "erpnext.regional.italy.utils.sales_invoice_on_submit",
vishdhad3ec1c12020-03-24 11:31:41 +0530344 ],
Sankara Subramanian Va06d2402023-02-21 22:52:20 +0530345 "on_cancel": ["erpnext.regional.italy.utils.sales_invoice_on_cancel"],
Deepesh Garg43820402021-11-29 18:25:47 +0530346 "on_trash": "erpnext.regional.check_deletion_permission",
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100347 },
Deepesh Garg24f9a802020-06-03 10:59:37 +0530348 "Purchase Invoice": {
hasnain28087b7a8e12020-09-09 20:54:30 +0530349 "validate": [
hasnain28087b7a8e12020-09-09 20:54:30 +0530350 "erpnext.regional.united_arab_emirates.utils.update_grand_total_for_rcm",
Deepesh Garg55fe85d2021-05-14 12:17:41 +0530351 "erpnext.regional.united_arab_emirates.utils.validate_returns",
Deepesh Garg55fe85d2021-05-14 12:17:41 +0530352 ]
Deepesh Garg24f9a802020-06-03 10:59:37 +0530353 },
Saurabhe4e89542016-07-21 20:26:46 +0530354 "Payment Entry": {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530355 "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 ],
marinationc3211392023-06-15 20:04:54 +0530360 "on_cancel": ["erpnext.accounts.doctype.dunning.dunning.resolve_dunning"],
Ankush Menat494bd9e2022-03-28 18:52:46 +0530361 "on_trash": "erpnext.regional.check_deletion_permission",
Rushabh Mehtab3c8f442017-06-21 17:22:38 +0530362 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530363 "Address": {
364 "validate": [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530365 "erpnext.regional.italy.utils.set_state_code",
Rucha Mahabal212eb4b2021-08-30 13:10:18 +0530366 ],
Nabin Hait619c42b2018-01-10 17:48:03 +0530367 },
Suraj Shettyd4edd282019-08-09 19:23:04 +0530368 "Contact": {
369 "on_trash": "erpnext.support.doctype.issue.issue.update_issue",
leela3234df52021-01-12 23:31:40 +0530370 "after_insert": "erpnext.telephony.doctype.call_log.call_log.link_existing_conversations",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530371 "validate": ["erpnext.crm.utils.update_lead_phone_numbers"],
Suraj Shettyd4edd282019-08-09 19:23:04 +0530372 },
Rucha Mahabal9e35bff2019-07-12 13:56:36 +0530373 "Email Unsubscribe": {
374 "after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient"
vishdhad3ec1c12020-03-24 11:31:41 +0530375 },
Subin Tom798b4642021-09-03 12:30:57 +0530376 "Integration Request": {
377 "validate": "erpnext.accounts.doctype.payment_request.payment_request.validate_payment"
Ankush Menat494bd9e2022-03-28 18:52:46 +0530378 },
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530379}
380
Deepesh Garg62706072023-07-16 12:58:42 +0530381# function should expect the variable and doc as arguments
382naming_series_variables = {
383 "FY": "erpnext.accounts.utils.parse_naming_series_variable",
384}
385
vishaldcef7982020-01-13 12:59:52 +0530386# 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 Menat494bd9e2022-03-28 18:52:46 +0530389auto_cancel_exempted_doctypes = [
Rucha Mahabal4887b692020-10-23 20:33:30 +0530390 "Payment Entry",
vishaldcef7982020-01-13 12:59:52 +0530391]
vishal70148a62019-12-02 17:37:46 +0530392
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530393scheduler_events = {
marination06ee0ea2020-09-07 18:49:06 +0530394 "cron": {
Rohit Waghchaure2f157fa2023-03-06 12:02:35 +0530395 "0/15 * * * *": [
marinationab2d95a2022-05-23 13:00:00 +0530396 "erpnext.manufacturing.doctype.bom_update_log.bom_update_log.resume_bom_cost_update_jobs",
ruthra kumared14d1c2023-04-22 17:24:35 +0530397 "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs",
marinationab2d95a2022-05-23 13:00:00 +0530398 ],
marination06ee0ea2020-09-07 18:49:06 +0530399 "0/30 * * * *": [
Gavin D'souza71ac3992020-09-10 13:57:44 +0530400 "erpnext.utilities.doctype.video.video.update_youtube_data",
marinationab2d95a2022-05-23 13:00:00 +0530401 ],
Ankush Menat5d736972022-06-28 12:22:17 +0530402 # 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 ],
marination06ee0ea2020-09-07 18:49:06 +0530410 },
Nabin Hait75807232015-07-02 14:41:27 +0530411 "hourly": [
Nabin Hait34c551d2019-07-03 10:34:31 +0530412 "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.automatic_synchronization",
Ankush Menate36c8ce2023-07-28 12:53:22 +0530413 "erpnext.projects.doctype.project.project.project_status_update_reminder",
Rohit Waghchaure425dff92019-01-17 12:49:45 +0530414 "erpnext.projects.doctype.project.project.hourly_reminder",
Himanshu Warekar6e6148b2019-05-10 23:49:42 +0530415 "erpnext.projects.doctype.project.project.collect_project_status",
Rohit Waghchaureb103b242021-05-27 17:05:36 +0530416 ],
417 "hourly_long": [
Mohammed Yusuf Shaikha3e69cf2022-02-08 01:00:37 +0530418 "erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries",
ruthra kumarfb06ad72023-11-20 13:26:02 +0530419 "erpnext.utilities.bulk_transaction.retry",
Nabin Hait75807232015-07-02 14:41:27 +0530420 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530421 "daily": [
Nabin Hait606af962014-12-15 11:57:03 +0530422 "erpnext.support.doctype.issue.issue.auto_close_tickets",
mbauskare1e25a02017-02-16 19:36:59 +0530423 "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity",
Rohit Waghchaure2f1db572016-11-08 12:39:33 +0530424 "erpnext.controllers.accounts_controller.update_invoice_status",
Rushabh Mehta5bceebc2015-01-23 15:22:13 +0530425 "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
Nabin Hait4fdb0522016-03-09 12:40:56 +0530426 "erpnext.projects.doctype.task.task.set_tasks_as_overdue",
Prateeksha Singhe012e242017-07-18 10:35:12 +0530427 "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status",
bcornwellmott96381da2017-07-24 10:12:30 -0700428 "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards",
Nabin Haitadbf8ad2017-07-31 20:45:36 +0530429 "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history",
Manas Solanki2f4e5ee2018-05-15 15:25:14 +0530430 "erpnext.assets.doctype.asset.asset.update_maintenance_status",
Rohan Bansalbf0f0aa2018-05-23 15:06:45 +0530431 "erpnext.assets.doctype.asset.asset.make_post_gl_entry",
Himanshu Mishra7aabef22018-06-28 23:43:23 +0530432 "erpnext.crm.doctype.contract.contract.update_status_for_contracts",
Himanshu0209ef02018-12-25 17:42:31 +0530433 "erpnext.projects.doctype.project.project.update_project_sales_billing",
Sagar Vora4d1a9b12019-01-22 15:56:39 +0530434 "erpnext.projects.doctype.project.project.send_project_status_email_to_users",
Himanshuf3e52132019-03-19 16:47:56 +0530435 "erpnext.quality_management.doctype.quality_review.quality_review.review",
Himanshu Warekarcf37e402019-05-07 10:27:01 +0530436 "erpnext.support.doctype.service_level_agreement.service_level_agreement.check_agreement_status",
Rucha Mahabalb54459e2019-07-22 03:23:40 +0530437 "erpnext.crm.doctype.email_campaign.email_campaign.send_email_to_leads_or_contacts",
0Pranav53b65ab2019-11-15 16:42:32 +0530438 "erpnext.crm.doctype.email_campaign.email_campaign.set_email_campaign_status",
marination81798042020-04-14 23:05:11 +0530439 "erpnext.selling.doctype.quotation.quotation.set_expired_status",
Abhishek Balamee5b9c72020-08-11 16:23:47 +0530440 "erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status",
Rucha Mahabalf1cca592021-01-21 16:36:15 +0530441 "erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_auto_email",
ruthra kumar4f51c5a2023-07-03 14:35:33 +0530442 "erpnext.accounts.utils.auto_create_exchange_rate_revaluation_daily",
443 ],
444 "weekly": [
445 "erpnext.accounts.utils.auto_create_exchange_rate_revaluation_weekly",
KanchanChauhan73bd3cb2018-09-05 11:01:35 +0530446 ],
447 "daily_long": [
Sagar Vora5a53a4b2023-11-27 20:21:19 +0530448 "erpnext.accounts.doctype.process_subscription.process_subscription.create_subscription_process",
Gavin D'souzad38f5372019-10-30 14:43:58 +0530449 "erpnext.setup.doctype.email_digest.email_digest.send",
marination4283a132022-03-16 19:45:03 +0530450 "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.auto_update_latest_price_in_all_boms",
Nabin Hait925b9d92022-06-27 21:58:19 +0530451 "erpnext.crm.utils.open_leads_opportunities_based_on_todays_event",
Anand Baburajanad33cd72023-08-09 20:26:28 +0530452 "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries",
KanchanChauhan73bd3cb2018-09-05 11:01:35 +0530453 ],
Nabin Haitb9b2a062019-05-01 12:49:44 +0530454 "monthly_long": [
Deepesh Gargde03d2c2020-06-01 11:30:34 +0530455 "erpnext.accounts.deferred_revenue.process_deferred_accounting",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530456 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530457}
Anand Doshi7f41ff22014-06-26 12:02:55 +0530458
Faris Ansari2c5b3e82017-07-13 18:37:18 +0530459email_brand_image = "assets/erpnext/images/erpnext-logo.jpg"
460
Faris Ansari40d3ad22017-07-31 16:16:22 +0530461default_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 Doshic82331b2015-02-12 18:58:28 +0530469
470get_translated_dict = {
Anand Doshic82331b2015-02-12 18:58:28 +0530471 ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
472}
Rushabh Mehtafe027b32016-03-28 13:21:43 +0530473
474bot_parsers = [
Ankush Menat494bd9e2022-03-28 18:52:46 +0530475 "erpnext.utilities.bot.FindItemBot",
Rushabh Mehta0c76f212016-04-01 11:53:50 +0530476]
Anand Doshif576f3b2016-06-25 19:51:48 +0530477
Ankush Menat494bd9e2022-03-28 18:52:46 +0530478get_site_info = "erpnext.utilities.get_site_info"
Saurabh94c666a2016-11-08 20:35:50 +0530479
Saurabh0d47d512017-03-14 14:46:05 +0530480payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
Rushabh Mehta7231f292017-07-13 15:00:56 +0530481
Himanshub84333f2020-04-14 13:02:03 +0530482communication_doctypes = ["Customer", "Supplier"]
483
ruthra kumar9fcd89d2024-01-24 13:27:31 +0530484advance_payment_receivable_doctypes = ["Sales Order"]
485advance_payment_payable_doctypes = ["Purchase Order"]
Rucha Mahabal1ff0e452022-06-23 16:17:34 +0530486
487invoice_doctypes = ["Sales Invoice", "Purchase Invoice"]
488
Rucha Mahabal466bf992022-07-01 19:01:17 +0530489bank_reconciliation_doctypes = [
490 "Payment Entry",
491 "Journal Entry",
492 "Purchase Invoice",
ruthra kumarb69cdeb2024-01-05 15:56:04 +0530493 "Sales Invoice",
Rucha Mahabal466bf992022-07-01 19:01:17 +0530494]
495
Ankush Menat494bd9e2022-03-28 18:52:46 +0530496accounting_dimension_doctypes = [
497 "GL Entry",
ruthra kumar7b1cb672022-05-16 14:32:58 +0530498 "Payment Ledger Entry",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530499 "Sales Invoice",
500 "Purchase Invoice",
501 "Payment Entry",
502 "Asset",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530503 "Stock Entry",
504 "Budget",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530505 "Delivery Note",
506 "Sales Invoice Item",
507 "Purchase Invoice Item",
508 "Purchase Order Item",
Deepesh Garge31db182023-10-17 18:19:47 +0530509 "Sales Order Item",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530510 "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 kumar452584c2022-07-28 07:11:16 +0530521 "Asset Repair",
Nabin Haitfe891aa2022-09-30 15:55:41 +0530522 "Asset Capitalization",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530523 "Loyalty Program",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530524 "Stock Reconciliation",
Ankush Menat494bd9e2022-03-28 18:52:46 +0530525 "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 Garg82a06352022-04-26 14:01:13 +0530532 "Purchase Order",
533 "Purchase Receipt",
534 "Sales Order",
Sagar Sharma8704ca72022-08-18 10:58:33 +0530535 "Subcontracting Order",
536 "Subcontracting Order Item",
537 "Subcontracting Receipt",
538 "Subcontracting Receipt Item",
Deepesh Garg3fd95202023-03-23 19:04:48 +0530539 "Account Closing Balance",
Deepesh Garg089da452023-11-17 12:37:14 +0530540 "Supplier Quotation",
541 "Supplier Quotation Item",
ruthra kumarcfb3d872023-12-14 12:16:50 +0530542 "Payment Reconciliation",
543 "Payment Reconciliation Allocation",
Glen Whitneydea6a902020-11-17 22:16:13 +0000544]
545
Rucha Mahabal466bf992022-07-01 19:01:17 +0530546get_matching_queries = (
547 "erpnext.accounts.doctype.bank_reconciliation_tool.bank_reconciliation_tool.get_matching_queries"
548)
549
Anand Baburajan988d7552023-06-30 11:02:49 +0530550get_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"
551
552get_payment_entries_for_bank_clearance = (
553 "erpnext.accounts.doctype.bank_clearance.bank_clearance.get_payment_entries_for_bank_clearance"
554)
555
556get_entries_for_bank_clearance_summary = "erpnext.accounts.report.bank_clearance_summary.bank_clearance_summary.get_entries_for_bank_clearance_summary"
557
558get_entries_for_bank_reconciliation_statement = "erpnext.accounts.report.bank_reconciliation_statement.bank_reconciliation_statement.get_entries_for_bank_reconciliation_statement"
559
Rushabh Mehta7231f292017-07-13 15:00:56 +0530560regional_overrides = {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530561 "France": {
562 "erpnext.tests.test_regional.test_method": "erpnext.regional.france.utils.test_method"
Charles-Henri Decultotb8c088e2018-02-21 06:37:33 +0100563 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530564 "United Arab Emirates": {
565 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data",
566 "erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries": "erpnext.regional.united_arab_emirates.utils.make_regional_gl_entries",
rohitwaghchaured4526682017-12-28 14:20:13 +0530567 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530568 "Saudi Arabia": {
569 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data"
scmmishra14d70ce2019-03-14 12:31:25 +0530570 },
Ankush Menat494bd9e2022-03-28 18:52:46 +0530571 "Italy": {
572 "erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.italy.utils.update_itemised_tax_data",
573 "erpnext.controllers.accounts_controller.validate_regional": "erpnext.regional.italy.utils.sales_invoice_validate",
574 },
Manas Solanki2f4e5ee2018-05-15 15:25:14 +0530575}
Mangesh-Khairnar2ffa87e2019-03-20 13:25:48 +0530576user_privacy_documents = [
577 {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530578 "doctype": "Lead",
579 "match_field": "email_id",
580 "personal_fields": ["phone", "mobile_no", "fax", "website", "lead_name"],
Mangesh-Khairnar2ffa87e2019-03-20 13:25:48 +0530581 },
582 {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530583 "doctype": "Opportunity",
584 "match_field": "contact_email",
585 "personal_fields": ["contact_mobile", "contact_display", "customer_name"],
586 },
John Clarkeb7339842019-04-04 23:32:25 -0600587]
Himanshu83b0b2a2019-09-27 00:59:48 +0530588
Himanshu Warekar21abc3a2019-09-30 13:40:02 +0530589# ERPNext doctypes for Global Search
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530590global_search_doctypes = {
591 "Default": [
592 {"doctype": "Customer", "index": 0},
593 {"doctype": "Supplier", "index": 1},
594 {"doctype": "Item", "index": 2},
595 {"doctype": "Warehouse", "index": 3},
596 {"doctype": "Account", "index": 4},
597 {"doctype": "Employee", "index": 5},
598 {"doctype": "BOM", "index": 6},
599 {"doctype": "Sales Invoice", "index": 7},
600 {"doctype": "Sales Order", "index": 8},
601 {"doctype": "Quotation", "index": 9},
602 {"doctype": "Work Order", "index": 10},
Walstan Baptista0baebbd2020-12-08 09:43:29 +0530603 {"doctype": "Purchase Order", "index": 11},
604 {"doctype": "Purchase Receipt", "index": 12},
605 {"doctype": "Purchase Invoice", "index": 13},
606 {"doctype": "Delivery Note", "index": 14},
607 {"doctype": "Stock Entry", "index": 15},
608 {"doctype": "Material Request", "index": 16},
609 {"doctype": "Delivery Trip", "index": 17},
610 {"doctype": "Pick List", "index": 18},
Walstan Baptista0baebbd2020-12-08 09:43:29 +0530611 {"doctype": "Payment Entry", "index": 22},
612 {"doctype": "Lead", "index": 23},
613 {"doctype": "Opportunity", "index": 24},
614 {"doctype": "Item Price", "index": 25},
615 {"doctype": "Purchase Taxes and Charges Template", "index": 26},
616 {"doctype": "Sales Taxes and Charges", "index": 27},
617 {"doctype": "Asset", "index": 28},
618 {"doctype": "Project", "index": 29},
619 {"doctype": "Task", "index": 30},
620 {"doctype": "Timesheet", "index": 31},
621 {"doctype": "Issue", "index": 32},
622 {"doctype": "Serial No", "index": 33},
623 {"doctype": "Batch", "index": 34},
624 {"doctype": "Branch", "index": 35},
625 {"doctype": "Department", "index": 36},
Walstan Baptista0baebbd2020-12-08 09:43:29 +0530626 {"doctype": "Designation", "index": 38},
Walstan Baptista0baebbd2020-12-08 09:43:29 +0530627 {"doctype": "Maintenance Schedule", "index": 45},
628 {"doctype": "Maintenance Visit", "index": 46},
629 {"doctype": "Warranty Claim", "index": 47},
Himanshu Warekar23c916c2019-10-02 16:32:53 +0530630 ],
Faris Ansari22bcad92020-10-16 15:28:12 +0530631}
leela3234df52021-01-12 23:31:40 +0530632
633additional_timeline_content = {
Ankush Menat494bd9e2022-03-28 18:52:46 +0530634 "*": ["erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs"]
leela3234df52021-01-12 23:31:40 +0530635}
Ankush Menatbd9ef742023-07-16 11:34:42 +0530636
637
638extend_bootinfo = [
639 "erpnext.support.doctype.service_level_agreement.service_level_agreement.add_sla_doctypes",
Richard Case525f6562023-12-06 15:18:13 +0000640 "erpnext.startup.boot.bootinfo",
Ankush Menatbd9ef742023-07-16 11:34:42 +0530641]
Ankush Menat1da90872023-11-30 13:28:55 +0530642
643
644default_log_clearing_doctypes = {
645 "Repost Item Valuation": 60,
646}
Ankush Menat63313ee2023-11-30 13:53:48 +0530647
648export_python_type_annotations = True