Anand Doshi | d57e793 | 2015-02-24 12:24:53 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 2 | from frappe import _ |
| 3 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 4 | app_name = "erpnext" |
| 5 | app_title = "ERPNext" |
Rushabh Mehta | ba02ce6 | 2015-07-22 15:07:25 +0530 | [diff] [blame] | 6 | app_publisher = "Frappe Technologies Pvt. Ltd." |
Rushabh Mehta | edc8ab0 | 2015-11-18 16:48:19 +0530 | [diff] [blame] | 7 | app_description = """ERP made simple""" |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 8 | app_icon = "fa fa-th" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 9 | app_color = "#e74c3c" |
Nabin Hait | 7ba4d02 | 2015-11-05 16:55:10 +0530 | [diff] [blame] | 10 | app_email = "info@erpnext.com" |
| 11 | app_license = "GNU General Public License (v3)" |
Rushabh Mehta | 7d23e42 | 2015-11-02 10:45:18 +0530 | [diff] [blame] | 12 | source_link = "https://github.com/frappe/erpnext" |
Faris Ansari | 4a1c7dd | 2019-06-19 19:15:37 +0530 | [diff] [blame] | 13 | app_logo_url = '/assets/erpnext/images/erp-icon.svg' |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 14 | |
scmmishra | 734d3e0 | 2018-11-03 18:03:35 +0530 | [diff] [blame] | 15 | |
Sahil Khan | ad4eb64 | 2020-06-30 17:54:41 +0530 | [diff] [blame] | 16 | develop_version = '13.x.x-develop' |
Rushabh Mehta | db206f2 | 2017-03-10 09:38:58 +0530 | [diff] [blame] | 17 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 18 | app_include_js = "assets/js/erpnext.min.js" |
| 19 | app_include_css = "assets/css/erpnext.css" |
| 20 | web_include_js = "assets/js/erpnext-web.min.js" |
Solufyin | 3be899c | 2018-08-07 18:28:39 +0530 | [diff] [blame] | 21 | web_include_css = "assets/css/erpnext-web.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 22 | |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 23 | doctype_js = { |
| 24 | "Communication": "public/js/communication.js", |
Faris Ansari | 5f8b358 | 2019-03-19 11:48:32 +0530 | [diff] [blame] | 25 | "Event": "public/js/event.js", |
Faris Ansari | 1e55c2e | 2019-04-30 10:18:09 +0530 | [diff] [blame] | 26 | "Website Theme": "public/js/website_theme.js", |
| 27 | "Newsletter": "public/js/newsletter.js" |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 28 | } |
| 29 | |
Neil Trini Lasrado | 771fbb8 | 2018-08-24 15:15:56 +0530 | [diff] [blame] | 30 | welcome_email = "erpnext.setup.utils.welcome_email" |
| 31 | |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 32 | # setup wizard |
| 33 | setup_wizard_requires = "assets/erpnext/js/setup_wizard.js" |
Prateeksha Singh | 8b0b56d | 2017-12-21 11:55:58 +0530 | [diff] [blame] | 34 | setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 35 | 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] | 36 | |
Rushabh Mehta | d55bdcf | 2015-12-31 11:12:48 +0530 | [diff] [blame] | 37 | before_install = "erpnext.setup.install.check_setup_wizard_not_completed" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 38 | after_install = "erpnext.setup.install.after_install" |
| 39 | |
| 40 | boot_session = "erpnext.startup.boot.boot_session" |
| 41 | notification_config = "erpnext.startup.notifications.get_notification_config" |
Rushabh Mehta | 05ce7ec | 2017-02-22 16:15:43 +0530 | [diff] [blame] | 42 | get_help_messages = "erpnext.utilities.activation.get_help_messages" |
prssanna | 3f1444e | 2019-09-24 13:04:53 +0530 | [diff] [blame] | 43 | leaderboards = "erpnext.startup.leaderboard.get_leaderboards" |
Prssanna Desai | 82ddef5 | 2020-06-18 18:18:41 +0530 | [diff] [blame] | 44 | filters_config = "erpnext.startup.filters.get_filters_config" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 45 | |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 46 | on_session_creation = [ |
| 47 | "erpnext.portal.utils.create_customer_or_supplier", |
| 48 | "erpnext.shopping_cart.utils.set_cart_count" |
| 49 | ] |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 50 | on_logout = "erpnext.shopping_cart.utils.clear_cart_count" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 51 | |
Mangesh-Khairnar | 07aae76 | 2019-06-26 11:03:57 +0530 | [diff] [blame] | 52 | treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', 'Assessment Group', 'Department'] |
Rushabh Mehta | 764aa92 | 2016-05-02 13:28:46 +0530 | [diff] [blame] | 53 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 54 | # website |
Shivam Mishra | 51b6fe2 | 2019-05-14 10:22:15 +0530 | [diff] [blame] | 55 | update_website_context = ["erpnext.shopping_cart.utils.update_website_context", "erpnext.education.doctype.education_settings.education_settings.update_website_context"] |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 56 | my_account_context = "erpnext.shopping_cart.utils.update_my_account_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 57 | |
Zarrar | 13ddc7e | 2018-03-20 12:38:43 +0530 | [diff] [blame] | 58 | calendars = ["Task", "Work Order", "Leave Application", "Sales Order", "Holiday List", "Course Schedule"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 59 | |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 60 | domains = { |
Ameya Shenoy | 5c62368 | 2017-12-06 18:36:27 +0530 | [diff] [blame] | 61 | 'Agriculture': 'erpnext.domains.agriculture', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 62 | 'Distribution': 'erpnext.domains.distribution', |
| 63 | 'Education': 'erpnext.domains.education', |
| 64 | 'Healthcare': 'erpnext.domains.healthcare', |
| 65 | 'Hospitality': 'erpnext.domains.hospitality', |
| 66 | 'Manufacturing': 'erpnext.domains.manufacturing', |
Zarrar | de8f612 | 2017-12-13 18:36:08 +0530 | [diff] [blame] | 67 | 'Non Profit': 'erpnext.domains.non_profit', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 68 | 'Retail': 'erpnext.domains.retail', |
| 69 | 'Services': 'erpnext.domains.services', |
| 70 | } |
| 71 | |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 72 | website_generators = ["Item Group", "Item", "BOM", "Sales Partner", |
| 73 | "Job Opening", "Student Admission"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 74 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 75 | website_context = { |
Rushabh Mehta | 5674c4f | 2015-04-16 15:09:42 +0530 | [diff] [blame] | 76 | "favicon": "/assets/erpnext/images/favicon.png", |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 77 | "splash_image": "/assets/erpnext/images/erp-icon.svg" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 78 | } |
| 79 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 80 | website_route_rules = [ |
| 81 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 82 | {"from_route": "/orders/<path:name>", "to_route": "order", |
| 83 | "defaults": { |
| 84 | "doctype": "Sales Order", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 85 | "parents": [{"label": _("Orders"), "route": "orders"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 86 | } |
| 87 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 88 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 89 | {"from_route": "/invoices/<path:name>", "to_route": "order", |
| 90 | "defaults": { |
| 91 | "doctype": "Sales Invoice", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 92 | "parents": [{"label": _("Invoices"), "route": "invoices"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 93 | } |
| 94 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 95 | {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"}, |
| 96 | {"from_route": "/supplier-quotations/<path:name>", "to_route": "order", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 97 | "defaults": { |
| 98 | "doctype": "Supplier Quotation", |
Brown-Harry Boma | d3fa191 | 2017-09-27 08:23:38 +0100 | [diff] [blame] | 99 | "parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}] |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 100 | } |
| 101 | }, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 102 | {"from_route": "/purchase-orders", "to_route": "Purchase Order"}, |
| 103 | {"from_route": "/purchase-orders/<path:name>", "to_route": "order", |
| 104 | "defaults": { |
| 105 | "doctype": "Purchase Order", |
| 106 | "parents": [{"label": _("Purchase Order"), "route": "purchase-orders"}] |
| 107 | } |
| 108 | }, |
| 109 | {"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"}, |
| 110 | {"from_route": "/purchase-invoices/<path:name>", "to_route": "order", |
| 111 | "defaults": { |
| 112 | "doctype": "Purchase Invoice", |
| 113 | "parents": [{"label": _("Purchase Invoice"), "route": "purchase-invoices"}] |
| 114 | } |
| 115 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 116 | {"from_route": "/quotations", "to_route": "Quotation"}, |
| 117 | {"from_route": "/quotations/<path:name>", "to_route": "order", |
| 118 | "defaults": { |
| 119 | "doctype": "Quotation", |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 120 | "parents": [{"label": _("Quotations"), "route": "quotations"}] |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 121 | } |
| 122 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 123 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 124 | {"from_route": "/shipments/<path:name>", "to_route": "order", |
| 125 | "defaults": { |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 126 | "doctype": "Delivery Note", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 127 | "parents": [{"label": _("Shipments"), "route": "shipments"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 128 | } |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 129 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 130 | {"from_route": "/rfq", "to_route": "Request for Quotation"}, |
| 131 | {"from_route": "/rfq/<path:name>", "to_route": "rfq", |
| 132 | "defaults": { |
| 133 | "doctype": "Request for Quotation", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 134 | "parents": [{"label": _("Request for Quotation"), "route": "rfq"}] |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 135 | } |
| 136 | }, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 137 | {"from_route": "/addresses", "to_route": "Address"}, |
| 138 | {"from_route": "/addresses/<path:name>", "to_route": "addresses", |
| 139 | "defaults": { |
| 140 | "doctype": "Address", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 141 | "parents": [{"label": _("Addresses"), "route": "addresses"}] |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 142 | } |
| 143 | }, |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 144 | {"from_route": "/jobs", "to_route": "Job Opening"}, |
Neil Trini Lasrado | 83d8120 | 2016-09-15 14:48:13 +0530 | [diff] [blame] | 145 | {"from_route": "/admissions", "to_route": "Student Admission"}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 146 | {"from_route": "/boms", "to_route": "BOM"}, |
| 147 | {"from_route": "/timesheets", "to_route": "Timesheet"}, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 148 | {"from_route": "/material-requests", "to_route": "Material Request"}, |
| 149 | {"from_route": "/material-requests/<path:name>", "to_route": "material_request_info", |
| 150 | "defaults": { |
| 151 | "doctype": "Material Request", |
| 152 | "parents": [{"label": _("Material Request"), "route": "material-requests"}] |
| 153 | } |
| 154 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 155 | ] |
| 156 | |
Rushabh Mehta | b9cdb05 | 2017-03-08 12:33:43 +0530 | [diff] [blame] | 157 | standard_portal_menu_items = [ |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 158 | {"title": _("Personal Details"), "route": "/personal-details", "reference_doctype": "Patient", "role": "Patient"}, |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 159 | {"title": _("Projects"), "route": "/project", "reference_doctype": "Project"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 160 | {"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"}, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 161 | {"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"}, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 162 | {"title": _("Purchase Orders"), "route": "/purchase-orders", "reference_doctype": "Purchase Order", "role": "Supplier"}, |
| 163 | {"title": _("Purchase Invoices"), "route": "/purchase-invoices", "reference_doctype": "Purchase Invoice", "role": "Supplier"}, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 164 | {"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 165 | {"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"}, |
| 166 | {"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"}, |
| 167 | {"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"}, |
| 168 | {"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"}, |
Neil Trini Lasrado | 3f0a581 | 2016-07-19 14:17:33 +0530 | [diff] [blame] | 169 | {"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 170 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 171 | {"title": _("Lab Test"), "route": "/lab-test", "reference_doctype": "Lab Test", "role":"Patient"}, |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 172 | {"title": _("Prescription"), "route": "/prescription", "reference_doctype": "Patient Encounter", "role":"Patient"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 173 | {"title": _("Patient Appointment"), "route": "/patient-appointments", "reference_doctype": "Patient Appointment", "role":"Patient"}, |
| 174 | {"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"}, |
Manas Solanki | 0518001 | 2017-10-05 14:31:31 +0530 | [diff] [blame] | 175 | {"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"}, |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 176 | {"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission", "role": "Student"}, |
| 177 | {"title": _("Certification"), "route": "/certification", "reference_doctype": "Certification Application", "role": "Non Profit Portal User"}, |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 178 | {"title": _("Material Request"), "route": "/material-requests", "reference_doctype": "Material Request", "role": "Customer"}, |
0Pranav | 5f5c725 | 2019-12-18 16:21:50 +0530 | [diff] [blame] | 179 | {"title": _("Appointment Booking"), "route": "/book_appointment"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 180 | ] |
| 181 | |
| 182 | default_roles = [ |
Rushabh Mehta | 95439db | 2017-01-14 00:25:22 +0530 | [diff] [blame] | 183 | {'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'}, |
| 184 | {'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 185 | {'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'}, |
Rushabh Mehta | c78b311 | 2016-03-30 12:29:48 +0530 | [diff] [blame] | 186 | ] |
| 187 | |
Suraj Shetty | f1ffdb3 | 2019-06-07 12:48:13 +0530 | [diff] [blame] | 188 | sounds = [ |
| 189 | {"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2}, |
| 190 | {"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2}, |
| 191 | ] |
| 192 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 193 | has_website_permission = { |
| 194 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 195 | "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 196 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 197 | "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Faris Ansari | 38ac7f7 | 2019-10-09 11:41:33 +0530 | [diff] [blame] | 198 | "Purchase Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 199 | "Purchase Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Doridel Cahanap | 2b14d6a | 2018-11-13 14:37:16 +0800 | [diff] [blame] | 200 | "Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 201 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 202 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission", |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 203 | "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 204 | "Lab Test": "erpnext.healthcare.web_form.lab_test.lab_test.has_website_permission", |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 205 | "Patient Encounter": "erpnext.healthcare.web_form.prescription.prescription.has_website_permission", |
| 206 | "Patient Appointment": "erpnext.healthcare.web_form.patient_appointments.patient_appointments.has_website_permission", |
| 207 | "Patient": "erpnext.healthcare.web_form.personal_details.personal_details.has_website_permission" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 208 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 209 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 210 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 211 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 212 | before_tests = "erpnext.setup.utils.before_tests" |
| 213 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 214 | standard_queries = { |
Jamsheer | c0097ad | 2018-11-23 11:37:58 +0530 | [diff] [blame] | 215 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list", |
| 216 | "Healthcare Practitioner": "erpnext.healthcare.doctype.healthcare_practitioner.healthcare_practitioner.get_practitioner_list" |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 217 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 218 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 219 | doc_events = { |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 220 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 221 | "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty", |
| 222 | "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] | 223 | }, |
| 224 | "User": { |
KanchanChauhan | 1dc26b1 | 2017-06-13 15:26:35 +0530 | [diff] [blame] | 225 | "after_insert": "frappe.contacts.doctype.contact.contact.update_contact", |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 226 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Rushabh Mehta | 0d6db6c | 2017-03-31 23:01:45 +0530 | [diff] [blame] | 227 | "on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions", |
| 228 | "erpnext.portal.utils.set_default_role"] |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 229 | }, |
Rushabh Mehta | f16f9c5 | 2016-04-08 17:20:50 +0530 | [diff] [blame] | 230 | ("Sales Taxes and Charges Template", 'Price List'): { |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 231 | "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings" |
| 232 | }, |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 233 | "Website Settings": { |
| 234 | "validate": "erpnext.portal.doctype.products_settings.products_settings.home_page_is_products" |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 235 | }, |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 236 | "Sales Invoice": { |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 237 | "on_submit": [ |
| 238 | "erpnext.regional.create_transaction_log", |
| 239 | "erpnext.regional.italy.utils.sales_invoice_on_submit", |
| 240 | "erpnext.erpnext_integrations.taxjar_integration.create_transaction" |
| 241 | ], |
| 242 | "on_cancel": [ |
| 243 | "erpnext.regional.italy.utils.sales_invoice_on_cancel", |
| 244 | "erpnext.erpnext_integrations.taxjar_integration.delete_transaction" |
| 245 | ], |
Nabin Hait | 0357fbc | 2018-03-09 13:19:52 +0530 | [diff] [blame] | 246 | "on_trash": "erpnext.regional.check_deletion_permission" |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 247 | }, |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 248 | "Purchase Invoice": { |
Deepesh Garg | 3c004ad | 2020-07-02 21:18:29 +0530 | [diff] [blame] | 249 | "validate": "erpnext.regional.india.utils.update_grand_total_for_rcm" |
Deepesh Garg | 24f9a80 | 2020-06-03 10:59:37 +0530 | [diff] [blame] | 250 | }, |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 251 | "Payment Entry": { |
Saqib Ansari | 4de2416 | 2020-04-06 12:34:38 +0530 | [diff] [blame] | 252 | "on_submit": ["erpnext.regional.create_transaction_log", "erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status"], |
Nabin Hait | 0357fbc | 2018-03-09 13:19:52 +0530 | [diff] [blame] | 253 | "on_trash": "erpnext.regional.check_deletion_permission" |
Rushabh Mehta | b3c8f44 | 2017-06-21 17:22:38 +0530 | [diff] [blame] | 254 | }, |
| 255 | 'Address': { |
Deepesh Garg | 6e2c13f | 2019-12-10 15:55:05 +0530 | [diff] [blame] | 256 | 'validate': ['erpnext.regional.india.utils.validate_gstin_for_india', 'erpnext.regional.italy.utils.set_state_code', 'erpnext.regional.india.utils.update_gst_category'] |
Nabin Hait | 619c42b | 2018-01-10 17:48:03 +0530 | [diff] [blame] | 257 | }, |
Deepesh Garg | 6e2c13f | 2019-12-10 15:55:05 +0530 | [diff] [blame] | 258 | ('Sales Invoice', 'Sales Order', 'Delivery Note', 'Purchase Invoice', 'Purchase Order', 'Purchase Receipt'): { |
| 259 | 'validate': ['erpnext.regional.india.utils.set_place_of_supply'] |
Shridhar Patil | 4987c4e | 2018-07-03 10:10:04 +0530 | [diff] [blame] | 260 | }, |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 261 | "Contact": { |
| 262 | "on_trash": "erpnext.support.doctype.issue.issue.update_issue", |
Rohan Bansal | 76825ab | 2020-04-28 16:08:52 +0530 | [diff] [blame] | 263 | "after_insert": "erpnext.communication.doctype.call_log.call_log.set_caller_information", |
| 264 | "validate": "erpnext.crm.utils.update_lead_phone_numbers" |
Suraj Shetty | d4edd28 | 2019-08-09 19:23:04 +0530 | [diff] [blame] | 265 | }, |
| 266 | "Lead": { |
| 267 | "after_insert": "erpnext.communication.doctype.call_log.call_log.set_caller_information" |
Rucha Mahabal | 9e35bff | 2019-07-12 13:56:36 +0530 | [diff] [blame] | 268 | }, |
| 269 | "Email Unsubscribe": { |
| 270 | "after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient" |
vishdha | d3ec1c1 | 2020-03-24 11:31:41 +0530 | [diff] [blame] | 271 | }, |
| 272 | ('Quotation', 'Sales Order', 'Sales Invoice'): { |
| 273 | 'validate': ["erpnext.erpnext_integrations.taxjar_integration.set_sales_tax"] |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 274 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 275 | } |
| 276 | |
vishal | dcef798 | 2020-01-13 12:59:52 +0530 | [diff] [blame] | 277 | # On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled. |
| 278 | # to maintain data integrity we exempted payment entry. it will un-link when sales invoice get cancelled. |
| 279 | # if payment entry not in auto cancel exempted doctypes it will cancel payment entry. |
| 280 | auto_cancel_exempted_doctypes= [ |
| 281 | "Payment Entry" |
| 282 | ] |
vishal | 70148a6 | 2019-12-02 17:37:46 +0530 | [diff] [blame] | 283 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 284 | scheduler_events = { |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 285 | "all": [ |
Rucha Mahabal | 5100e11 | 2020-02-24 22:08:45 +0530 | [diff] [blame] | 286 | "erpnext.projects.doctype.project.project.project_status_update_reminder", |
rohitwaghchaure | 77403ab | 2020-04-25 17:37:24 +0530 | [diff] [blame] | 287 | "erpnext.healthcare.doctype.patient_appointment.patient_appointment.send_appointment_reminder", |
Anupam K | 22318b2 | 2020-04-18 00:45:18 +0530 | [diff] [blame] | 288 | "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] | 289 | ], |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 290 | "hourly": [ |
tundebabzy | 0ec4452 | 2018-03-01 11:33:03 +0100 | [diff] [blame] | 291 | 'erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails', |
Pawan Mehta | 6010a10 | 2018-09-05 17:16:57 +0530 | [diff] [blame] | 292 | "erpnext.accounts.doctype.subscription.subscription.process_all", |
Aditya Hase | 7bc692d | 2019-01-07 19:01:47 +0530 | [diff] [blame] | 293 | "erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details", |
| 294 | "erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs", |
Nabin Hait | 34c551d | 2019-07-03 10:34:31 +0530 | [diff] [blame] | 295 | "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.automatic_synchronization", |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 296 | "erpnext.projects.doctype.project.project.hourly_reminder", |
Himanshu Warekar | 6e6148b | 2019-05-10 23:49:42 +0530 | [diff] [blame] | 297 | "erpnext.projects.doctype.project.project.collect_project_status", |
Himanshu Warekar | 2373c09 | 2019-06-25 16:27:06 +0530 | [diff] [blame] | 298 | "erpnext.hr.doctype.shift_type.shift_type.process_auto_attendance_for_all_shifts", |
Himanshu Warekar | 6931ea6 | 2019-06-25 16:27:58 +0530 | [diff] [blame] | 299 | "erpnext.support.doctype.issue.issue.set_service_level_agreement_variance", |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 300 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 301 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 302 | "erpnext.stock.reorder_item.reorder_item", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 303 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
mbauskar | e1e25a0 | 2017-02-16 19:36:59 +0530 | [diff] [blame] | 304 | "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity", |
Rohit Waghchaure | 2f1db57 | 2016-11-08 12:39:33 +0530 | [diff] [blame] | 305 | "erpnext.controllers.accounts_controller.update_invoice_status", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 306 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
Rushabh Mehta | 13ec41a | 2015-12-10 12:31:36 +0530 | [diff] [blame] | 307 | "erpnext.hr.doctype.employee.employee.send_birthday_reminders", |
Nabin Hait | 4fdb052 | 2016-03-09 12:40:56 +0530 | [diff] [blame] | 308 | "erpnext.projects.doctype.task.task.set_tasks_as_overdue", |
Kanchan Chauhan | e58a41a | 2017-10-17 15:17:24 +0530 | [diff] [blame] | 309 | "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries", |
Suraj Shetty | d3069fe | 2018-02-21 15:15:43 +0530 | [diff] [blame] | 310 | "erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.send_summary", |
Prateeksha Singh | e012e24 | 2017-07-18 10:35:12 +0530 | [diff] [blame] | 311 | "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status", |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 312 | "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards", |
Nabin Hait | adbf8ad | 2017-07-31 20:45:36 +0530 | [diff] [blame] | 313 | "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history", |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 314 | "erpnext.assets.doctype.asset.asset.update_maintenance_status", |
Rohan Bansal | bf0f0aa | 2018-05-23 15:06:45 +0530 | [diff] [blame] | 315 | "erpnext.assets.doctype.asset.asset.make_post_gl_entry", |
Himanshu Mishra | 7aabef2 | 2018-06-28 23:43:23 +0530 | [diff] [blame] | 316 | "erpnext.crm.doctype.contract.contract.update_status_for_contracts", |
Himanshu | 0209ef0 | 2018-12-25 17:42:31 +0530 | [diff] [blame] | 317 | "erpnext.projects.doctype.project.project.update_project_sales_billing", |
Sagar Vora | 4d1a9b1 | 2019-01-22 15:56:39 +0530 | [diff] [blame] | 318 | "erpnext.projects.doctype.project.project.send_project_status_email_to_users", |
Himanshu | f3e5213 | 2019-03-19 16:47:56 +0530 | [diff] [blame] | 319 | "erpnext.quality_management.doctype.quality_review.quality_review.review", |
Himanshu Warekar | cf37e40 | 2019-05-07 10:27:01 +0530 | [diff] [blame] | 320 | "erpnext.support.doctype.service_level_agreement.service_level_agreement.check_agreement_status", |
Rucha Mahabal | b54459e | 2019-07-22 03:23:40 +0530 | [diff] [blame] | 321 | "erpnext.crm.doctype.email_campaign.email_campaign.send_email_to_leads_or_contacts", |
0Pranav | 53b65ab | 2019-11-15 16:42:32 +0530 | [diff] [blame] | 322 | "erpnext.crm.doctype.email_campaign.email_campaign.set_email_campaign_status", |
marination | 8179804 | 2020-04-14 23:05:11 +0530 | [diff] [blame] | 323 | "erpnext.selling.doctype.quotation.quotation.set_expired_status", |
marination | 1bab153 | 2020-04-15 12:16:31 +0530 | [diff] [blame] | 324 | "erpnext.healthcare.doctype.patient_appointment.patient_appointment.update_appointment_status", |
marination | 8179804 | 2020-04-14 23:05:11 +0530 | [diff] [blame] | 325 | "erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status" |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 326 | ], |
| 327 | "daily_long": [ |
Gavin D'souza | d38f537 | 2019-10-30 14:43:58 +0530 | [diff] [blame] | 328 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Mangesh-Khairnar | f281f00 | 2019-08-05 14:47:02 +0530 | [diff] [blame] | 329 | "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.update_latest_price_in_all_boms", |
| 330 | "erpnext.hr.doctype.leave_ledger_entry.leave_ledger_entry.process_expired_allocation", |
Deepesh Garg | d1d0a50 | 2020-02-26 10:44:24 +0530 | [diff] [blame] | 331 | "erpnext.hr.utils.generate_leave_encashment", |
Deepesh Garg | af27d61 | 2020-04-13 12:29:00 +0530 | [diff] [blame] | 332 | "erpnext.loan_management.doctype.loan_security_shortfall.loan_security_shortfall.create_process_loan_security_shortfall", |
Deepesh Garg | f7e216e | 2020-04-10 20:03:11 +0530 | [diff] [blame] | 333 | "erpnext.loan_management.doctype.loan_interest_accrual.loan_interest_accrual.process_loan_interest_accrual_for_term_loans" |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 334 | ], |
Nabin Hait | b9b2a06 | 2019-05-01 12:49:44 +0530 | [diff] [blame] | 335 | "monthly_long": [ |
Deepesh Garg | de03d2c | 2020-06-01 11:30:34 +0530 | [diff] [blame] | 336 | "erpnext.accounts.deferred_revenue.process_deferred_accounting", |
Deepesh Garg | d1d0a50 | 2020-02-26 10:44:24 +0530 | [diff] [blame] | 337 | "erpnext.hr.utils.allocate_earned_leaves", |
Deepesh Garg | f7e216e | 2020-04-10 20:03:11 +0530 | [diff] [blame] | 338 | "erpnext.loan_management.doctype.loan_interest_accrual.loan_interest_accrual.process_loan_interest_accrual_for_demand_loans" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 339 | ] |
| 340 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 341 | |
Faris Ansari | 2c5b3e8 | 2017-07-13 18:37:18 +0530 | [diff] [blame] | 342 | email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" |
| 343 | |
Faris Ansari | 40d3ad2 | 2017-07-31 16:16:22 +0530 | [diff] [blame] | 344 | default_mail_footer = """ |
| 345 | <span> |
| 346 | Sent via |
| 347 | <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank"> |
| 348 | ERPNext |
| 349 | </a> |
| 350 | </span> |
| 351 | """ |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 352 | |
| 353 | get_translated_dict = { |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 354 | ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict" |
| 355 | } |
Rushabh Mehta | fe027b3 | 2016-03-28 13:21:43 +0530 | [diff] [blame] | 356 | |
| 357 | bot_parsers = [ |
| 358 | 'erpnext.utilities.bot.FindItemBot', |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 359 | ] |
Anand Doshi | f576f3b | 2016-06-25 19:51:48 +0530 | [diff] [blame] | 360 | |
| 361 | get_site_info = 'erpnext.utilities.get_site_info' |
Saurabh | 94c666a | 2016-11-08 20:35:50 +0530 | [diff] [blame] | 362 | |
Saurabh | 0d47d51 | 2017-03-14 14:46:05 +0530 | [diff] [blame] | 363 | payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account" |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 364 | |
Himanshu | b84333f | 2020-04-14 13:02:03 +0530 | [diff] [blame] | 365 | communication_doctypes = ["Customer", "Supplier"] |
| 366 | |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 367 | regional_overrides = { |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 368 | 'France': { |
| 369 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.france.utils.test_method' |
| 370 | }, |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 371 | 'India': { |
Nabin Hait | b962fc1 | 2017-07-17 18:02:31 +0530 | [diff] [blame] | 372 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method', |
| 373 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header': 'erpnext.regional.india.utils.get_itemised_tax_breakup_header', |
Shreya Shah | 4fa600a | 2018-06-05 11:27:53 +0530 | [diff] [blame] | 374 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data': 'erpnext.regional.india.utils.get_itemised_tax_breakup_data', |
Ranjith Kurungadam | a8e047a | 2018-06-14 17:56:16 +0530 | [diff] [blame] | 375 | 'erpnext.accounts.party.get_regional_address_details': 'erpnext.regional.india.utils.get_regional_address_details', |
| 376 | 'erpnext.hr.utils.calculate_annual_eligible_hra_exemption': 'erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption', |
Deepesh Garg | 3c004ad | 2020-07-02 21:18:29 +0530 | [diff] [blame] | 377 | 'erpnext.hr.utils.calculate_hra_exemption_for_period': 'erpnext.regional.india.utils.calculate_hra_exemption_for_period', |
| 378 | 'erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries': 'erpnext.regional.india.utils.make_regional_gl_entries' |
rohitwaghchaure | d452668 | 2017-12-28 14:20:13 +0530 | [diff] [blame] | 379 | }, |
| 380 | 'United Arab Emirates': { |
| 381 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data' |
| 382 | }, |
| 383 | 'Saudi Arabia': { |
| 384 | '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] | 385 | }, |
| 386 | 'Italy': { |
| 387 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.italy.utils.update_itemised_tax_data', |
| 388 | 'erpnext.controllers.accounts_controller.validate_regional': 'erpnext.regional.italy.utils.sales_invoice_validate', |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 389 | } |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 390 | } |
Mangesh-Khairnar | 2ffa87e | 2019-03-20 13:25:48 +0530 | [diff] [blame] | 391 | user_privacy_documents = [ |
| 392 | { |
| 393 | 'doctype': 'Lead', |
| 394 | 'match_field': 'email_id', |
| 395 | 'personal_fields': ['phone', 'mobile_no', 'fax', 'website', 'lead_name'], |
| 396 | }, |
| 397 | { |
| 398 | 'doctype': 'Opportunity', |
| 399 | 'match_field': 'contact_email', |
| 400 | 'personal_fields': ['contact_mobile', 'contact_display', 'customer_name'], |
| 401 | } |
John Clarke | b733984 | 2019-04-04 23:32:25 -0600 | [diff] [blame] | 402 | ] |
Himanshu | 83b0b2a | 2019-09-27 00:59:48 +0530 | [diff] [blame] | 403 | |
Himanshu Warekar | 21abc3a | 2019-09-30 13:40:02 +0530 | [diff] [blame] | 404 | # ERPNext doctypes for Global Search |
Himanshu Warekar | 23c916c | 2019-10-02 16:32:53 +0530 | [diff] [blame] | 405 | global_search_doctypes = { |
| 406 | "Default": [ |
| 407 | {"doctype": "Customer", "index": 0}, |
| 408 | {"doctype": "Supplier", "index": 1}, |
| 409 | {"doctype": "Item", "index": 2}, |
| 410 | {"doctype": "Warehouse", "index": 3}, |
| 411 | {"doctype": "Account", "index": 4}, |
| 412 | {"doctype": "Employee", "index": 5}, |
| 413 | {"doctype": "BOM", "index": 6}, |
| 414 | {"doctype": "Sales Invoice", "index": 7}, |
| 415 | {"doctype": "Sales Order", "index": 8}, |
| 416 | {"doctype": "Quotation", "index": 9}, |
| 417 | {"doctype": "Work Order", "index": 10}, |
| 418 | {"doctype": "Purchase Receipt", "index": 11}, |
| 419 | {"doctype": "Purchase Invoice", "index": 12}, |
| 420 | {"doctype": "Delivery Note", "index": 13}, |
| 421 | {"doctype": "Stock Entry", "index": 14}, |
| 422 | {"doctype": "Material Request", "index": 15}, |
| 423 | {"doctype": "Delivery Trip", "index": 16}, |
| 424 | {"doctype": "Pick List", "index": 17}, |
| 425 | {"doctype": "Salary Slip", "index": 18}, |
| 426 | {"doctype": "Leave Application", "index": 19}, |
| 427 | {"doctype": "Expense Claim", "index": 20}, |
| 428 | {"doctype": "Payment Entry", "index": 21}, |
| 429 | {"doctype": "Lead", "index": 22}, |
| 430 | {"doctype": "Opportunity", "index": 23}, |
| 431 | {"doctype": "Item Price", "index": 24}, |
| 432 | {"doctype": "Purchase Taxes and Charges Template", "index": 25}, |
| 433 | {"doctype": "Sales Taxes and Charges", "index": 26}, |
| 434 | {"doctype": "Asset", "index": 27}, |
| 435 | {"doctype": "Project", "index": 28}, |
| 436 | {"doctype": "Task", "index": 29}, |
| 437 | {"doctype": "Timesheet", "index": 30}, |
| 438 | {"doctype": "Issue", "index": 31}, |
| 439 | {"doctype": "Serial No", "index": 32}, |
| 440 | {"doctype": "Batch", "index": 33}, |
| 441 | {"doctype": "Branch", "index": 34}, |
| 442 | {"doctype": "Department", "index": 35}, |
| 443 | {"doctype": "Employee Grade", "index": 36}, |
| 444 | {"doctype": "Designation", "index": 37}, |
| 445 | {"doctype": "Job Opening", "index": 38}, |
| 446 | {"doctype": "Job Applicant", "index": 39}, |
| 447 | {"doctype": "Job Offer", "index": 40}, |
| 448 | {"doctype": "Salary Structure Assignment", "index": 41}, |
| 449 | {"doctype": "Appraisal", "index": 42}, |
| 450 | {"doctype": "Loan", "index": 43}, |
| 451 | {"doctype": "Maintenance Schedule", "index": 44}, |
| 452 | {"doctype": "Maintenance Visit", "index": 45}, |
| 453 | {"doctype": "Warranty Claim", "index": 46}, |
| 454 | ], |
| 455 | "Healthcare": [ |
| 456 | {'doctype': 'Patient', 'index': 1}, |
| 457 | {'doctype': 'Medical Department', 'index': 2}, |
| 458 | {'doctype': 'Vital Signs', 'index': 3}, |
| 459 | {'doctype': 'Healthcare Practitioner', 'index': 4}, |
| 460 | {'doctype': 'Patient Appointment', 'index': 5}, |
| 461 | {'doctype': 'Healthcare Service Unit', 'index': 6}, |
| 462 | {'doctype': 'Patient Encounter', 'index': 7}, |
| 463 | {'doctype': 'Antibiotic', 'index': 8}, |
| 464 | {'doctype': 'Diagnosis', 'index': 9}, |
| 465 | {'doctype': 'Lab Test', 'index': 10}, |
| 466 | {'doctype': 'Clinical Procedure', 'index': 11}, |
| 467 | {'doctype': 'Inpatient Record', 'index': 12}, |
| 468 | {'doctype': 'Sample Collection', 'index': 13}, |
| 469 | {'doctype': 'Patient Medical Record', 'index': 14}, |
| 470 | {'doctype': 'Appointment Type', 'index': 15}, |
| 471 | {'doctype': 'Fee Validity', 'index': 16}, |
| 472 | {'doctype': 'Practitioner Schedule', 'index': 17}, |
| 473 | {'doctype': 'Dosage Form', 'index': 18}, |
| 474 | {'doctype': 'Lab Test Sample', 'index': 19}, |
| 475 | {'doctype': 'Prescription Duration', 'index': 20}, |
| 476 | {'doctype': 'Prescription Dosage', 'index': 21}, |
| 477 | {'doctype': 'Sensitivity', 'index': 22}, |
| 478 | {'doctype': 'Complaint', 'index': 23}, |
| 479 | {'doctype': 'Medical Code', 'index': 24}, |
| 480 | ], |
| 481 | "Education": [ |
| 482 | {'doctype': 'Article', 'index': 1}, |
| 483 | {'doctype': 'Video', 'index': 2}, |
| 484 | {'doctype': 'Topic', 'index': 3}, |
| 485 | {'doctype': 'Course', 'index': 4}, |
| 486 | {'doctype': 'Program', 'index': 5}, |
| 487 | {'doctype': 'Quiz', 'index': 6}, |
| 488 | {'doctype': 'Question', 'index': 7}, |
| 489 | {'doctype': 'Fee Schedule', 'index': 8}, |
| 490 | {'doctype': 'Fee Structure', 'index': 9}, |
| 491 | {'doctype': 'Fees', 'index': 10}, |
| 492 | {'doctype': 'Student Group', 'index': 11}, |
| 493 | {'doctype': 'Student', 'index': 12}, |
| 494 | {'doctype': 'Instructor', 'index': 13}, |
| 495 | {'doctype': 'Course Activity', 'index': 14}, |
| 496 | {'doctype': 'Quiz Activity', 'index': 15}, |
| 497 | {'doctype': 'Course Enrollment', 'index': 16}, |
| 498 | {'doctype': 'Program Enrollment', 'index': 17}, |
| 499 | {'doctype': 'Student Language', 'index': 18}, |
| 500 | {'doctype': 'Student Applicant', 'index': 19}, |
| 501 | {'doctype': 'Assessment Result', 'index': 20}, |
| 502 | {'doctype': 'Assessment Plan', 'index': 21}, |
| 503 | {'doctype': 'Grading Scale', 'index': 22}, |
| 504 | {'doctype': 'Guardian', 'index': 23}, |
| 505 | {'doctype': 'Student Leave Application', 'index': 24}, |
| 506 | {'doctype': 'Student Log', 'index': 25}, |
| 507 | {'doctype': 'Room', 'index': 26}, |
| 508 | {'doctype': 'Course Schedule', 'index': 27}, |
| 509 | {'doctype': 'Student Attendance', 'index': 28}, |
| 510 | {'doctype': 'Announcement', 'index': 29}, |
| 511 | {'doctype': 'Student Category', 'index': 30}, |
| 512 | {'doctype': 'Assessment Group', 'index': 31}, |
| 513 | {'doctype': 'Student Batch Name', 'index': 32}, |
| 514 | {'doctype': 'Assessment Criteria', 'index': 33}, |
| 515 | {'doctype': 'Academic Year', 'index': 34}, |
| 516 | {'doctype': 'Academic Term', 'index': 35}, |
| 517 | {'doctype': 'School House', 'index': 36}, |
| 518 | {'doctype': 'Student Admission', 'index': 37}, |
| 519 | {'doctype': 'Fee Category', 'index': 38}, |
| 520 | {'doctype': 'Assessment Code', 'index': 39}, |
| 521 | {'doctype': 'Discussion', 'index': 40}, |
| 522 | ], |
| 523 | "Agriculture": [ |
| 524 | {'doctype': 'Weather', 'index': 1}, |
| 525 | {'doctype': 'Soil Texture', 'index': 2}, |
| 526 | {'doctype': 'Water Analysis', 'index': 3}, |
| 527 | {'doctype': 'Soil Analysis', 'index': 4}, |
| 528 | {'doctype': 'Plant Analysis', 'index': 5}, |
| 529 | {'doctype': 'Agriculture Analysis Criteria', 'index': 6}, |
| 530 | {'doctype': 'Disease', 'index': 7}, |
| 531 | {'doctype': 'Crop', 'index': 8}, |
| 532 | {'doctype': 'Fertilizer', 'index': 9}, |
| 533 | {'doctype': 'Crop Cycle', 'index': 10} |
| 534 | ], |
| 535 | "Non Profit": [ |
| 536 | {'doctype': 'Certified Consultant', 'index': 1}, |
| 537 | {'doctype': 'Certification Application', 'index': 2}, |
| 538 | {'doctype': 'Volunteer', 'index': 3}, |
| 539 | {'doctype': 'Membership', 'index': 4}, |
| 540 | {'doctype': 'Member', 'index': 5}, |
| 541 | {'doctype': 'Donor', 'index': 6}, |
| 542 | {'doctype': 'Chapter', 'index': 7}, |
| 543 | {'doctype': 'Grant Application', 'index': 8}, |
| 544 | {'doctype': 'Volunteer Type', 'index': 9}, |
| 545 | {'doctype': 'Donor Type', 'index': 10}, |
| 546 | {'doctype': 'Membership Type', 'index': 11} |
| 547 | ], |
| 548 | "Hospitality": [ |
| 549 | {'doctype': 'Hotel Room', 'index': 0}, |
| 550 | {'doctype': 'Hotel Room Reservation', 'index': 1}, |
| 551 | {'doctype': 'Hotel Room Pricing', 'index': 2}, |
| 552 | {'doctype': 'Hotel Room Package', 'index': 3}, |
| 553 | {'doctype': 'Hotel Room Type', 'index': 4} |
| 554 | ] |
Rohan Bansal | 76825ab | 2020-04-28 16:08:52 +0530 | [diff] [blame] | 555 | } |