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" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 13 | |
Rushabh Mehta | 4b99fe1 | 2017-09-30 11:41:26 +0530 | [diff] [blame] | 14 | develop_version = '9.x.x-develop' |
Rushabh Mehta | db206f2 | 2017-03-10 09:38:58 +0530 | [diff] [blame] | 15 | |
Anand Doshi | 0c3bb75 | 2014-07-09 12:59:56 +0530 | [diff] [blame] | 16 | error_report_email = "support@erpnext.com" |
| 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" |
Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 21 | web_include_css = "assets/erpnext/css/website.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", |
| 25 | } |
| 26 | |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 27 | # setup wizard |
| 28 | setup_wizard_requires = "assets/erpnext/js/setup_wizard.js" |
| 29 | setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_complete" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 30 | 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] | 31 | |
Rushabh Mehta | d55bdcf | 2015-12-31 11:12:48 +0530 | [diff] [blame] | 32 | before_install = "erpnext.setup.install.check_setup_wizard_not_completed" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 33 | after_install = "erpnext.setup.install.after_install" |
| 34 | |
| 35 | boot_session = "erpnext.startup.boot.boot_session" |
| 36 | notification_config = "erpnext.startup.notifications.get_notification_config" |
Rushabh Mehta | 05ce7ec | 2017-02-22 16:15:43 +0530 | [diff] [blame] | 37 | get_help_messages = "erpnext.utilities.activation.get_help_messages" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 38 | get_user_progress_slides = "erpnext.utilities.user_progress.get_user_progress_slides" |
| 39 | update_and_get_user_progress = "erpnext.utilities.user_progress_utils.update_default_domain_actions_and_get_state" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 40 | |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 41 | on_session_creation = "erpnext.shopping_cart.utils.set_cart_count" |
| 42 | on_logout = "erpnext.shopping_cart.utils.clear_cart_count" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 43 | |
Nabin Hait | e5716e3 | 2017-09-11 19:21:37 +0530 | [diff] [blame] | 44 | treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory'] |
Rushabh Mehta | 764aa92 | 2016-05-02 13:28:46 +0530 | [diff] [blame] | 45 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 46 | # website |
| 47 | update_website_context = "erpnext.shopping_cart.utils.update_website_context" |
| 48 | my_account_context = "erpnext.shopping_cart.utils.update_my_account_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 49 | |
Makarand Bauskar | 1b67d71 | 2017-10-04 15:55:56 +0530 | [diff] [blame] | 50 | email_append_to = ["Job Applicant", "Lead", "Opportunity", "Issue"] |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 51 | |
Rohit Waghchaure | d6c986d | 2016-06-03 14:44:35 +0530 | [diff] [blame] | 52 | calendars = ["Task", "Production Order", "Leave Application", "Sales Order", "Holiday List"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 53 | |
hiousi | d81e9f3 | 2017-11-17 07:12:24 +0100 | [diff] [blame] | 54 | |
Kanchan Chauhan | 1f3d5b7 | 2016-03-01 11:33:49 +0530 | [diff] [blame] | 55 | |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 56 | domains = { |
| 57 | 'Distribution': 'erpnext.domains.distribution', |
| 58 | 'Education': 'erpnext.domains.education', |
| 59 | 'Healthcare': 'erpnext.domains.healthcare', |
| 60 | 'Hospitality': 'erpnext.domains.hospitality', |
| 61 | 'Manufacturing': 'erpnext.domains.manufacturing', |
| 62 | 'Retail': 'erpnext.domains.retail', |
| 63 | 'Services': 'erpnext.domains.services', |
| 64 | } |
| 65 | |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 66 | website_generators = ["Item Group", "Item", "BOM", "Sales Partner", |
| 67 | "Job Opening", "Student Admission"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 68 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 69 | website_context = { |
Rushabh Mehta | 5674c4f | 2015-04-16 15:09:42 +0530 | [diff] [blame] | 70 | "favicon": "/assets/erpnext/images/favicon.png", |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 71 | "splash_image": "/assets/erpnext/images/erp-icon.svg" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 72 | } |
| 73 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 74 | website_route_rules = [ |
| 75 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 76 | {"from_route": "/orders/<path:name>", "to_route": "order", |
| 77 | "defaults": { |
| 78 | "doctype": "Sales Order", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 79 | "parents": [{"label": _("Orders"), "route": "orders"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 80 | } |
| 81 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 82 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 83 | {"from_route": "/invoices/<path:name>", "to_route": "order", |
| 84 | "defaults": { |
| 85 | "doctype": "Sales Invoice", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 86 | "parents": [{"label": _("Invoices"), "route": "invoices"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 87 | } |
| 88 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 89 | {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"}, |
| 90 | {"from_route": "/supplier-quotations/<path:name>", "to_route": "order", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 91 | "defaults": { |
| 92 | "doctype": "Supplier Quotation", |
Brown-Harry Boma | d3fa191 | 2017-09-27 08:23:38 +0100 | [diff] [blame] | 93 | "parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}] |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 94 | } |
| 95 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 96 | {"from_route": "/quotations", "to_route": "Quotation"}, |
| 97 | {"from_route": "/quotations/<path:name>", "to_route": "order", |
| 98 | "defaults": { |
| 99 | "doctype": "Quotation", |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 100 | "parents": [{"label": _("Quotations"), "route": "quotations"}] |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 101 | } |
| 102 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 103 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 104 | {"from_route": "/shipments/<path:name>", "to_route": "order", |
| 105 | "defaults": { |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 106 | "doctype": "Delivery Note", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 107 | "parents": [{"label": _("Shipments"), "route": "shipments"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 108 | } |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 109 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 110 | {"from_route": "/rfq", "to_route": "Request for Quotation"}, |
| 111 | {"from_route": "/rfq/<path:name>", "to_route": "rfq", |
| 112 | "defaults": { |
| 113 | "doctype": "Request for Quotation", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 114 | "parents": [{"label": _("Request for Quotation"), "route": "rfq"}] |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 115 | } |
| 116 | }, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 117 | {"from_route": "/addresses", "to_route": "Address"}, |
| 118 | {"from_route": "/addresses/<path:name>", "to_route": "addresses", |
| 119 | "defaults": { |
| 120 | "doctype": "Address", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 121 | "parents": [{"label": _("Addresses"), "route": "addresses"}] |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 122 | } |
| 123 | }, |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 124 | {"from_route": "/jobs", "to_route": "Job Opening"}, |
Neil Trini Lasrado | 83d8120 | 2016-09-15 14:48:13 +0530 | [diff] [blame] | 125 | {"from_route": "/admissions", "to_route": "Student Admission"}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 126 | {"from_route": "/boms", "to_route": "BOM"}, |
| 127 | {"from_route": "/timesheets", "to_route": "Timesheet"}, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 128 | ] |
| 129 | |
Rushabh Mehta | b9cdb05 | 2017-03-08 12:33:43 +0530 | [diff] [blame] | 130 | standard_portal_menu_items = [ |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 131 | {"title": _("Projects"), "route": "/project", "reference_doctype": "Project"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 132 | {"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] | 133 | {"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"}, |
| 134 | {"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 135 | {"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"}, |
| 136 | {"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"}, |
| 137 | {"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"}, |
| 138 | {"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"}, |
Neil Trini Lasrado | 3f0a581 | 2016-07-19 14:17:33 +0530 | [diff] [blame] | 139 | {"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 140 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 141 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
| 142 | {"title": _("Lab Test"), "route": "/lab-test", "reference_doctype": "Lab Test", "role":"Patient"}, |
| 143 | {"title": _("Prescription"), "route": "/prescription", "reference_doctype": "Consultation", "role":"Patient"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 144 | {"title": _("Patient Appointment"), "route": "/patient-appointments", "reference_doctype": "Patient Appointment", "role":"Patient"}, |
| 145 | {"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"}, |
Manas Solanki | 0518001 | 2017-10-05 14:31:31 +0530 | [diff] [blame] | 146 | {"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"}, |
| 147 | {"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission"} |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 148 | ] |
| 149 | |
| 150 | default_roles = [ |
Rushabh Mehta | 95439db | 2017-01-14 00:25:22 +0530 | [diff] [blame] | 151 | {'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'}, |
| 152 | {'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 153 | {'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'}, |
Rushabh Mehta | c78b311 | 2016-03-30 12:29:48 +0530 | [diff] [blame] | 154 | ] |
| 155 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 156 | has_website_permission = { |
| 157 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 158 | "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 159 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 160 | "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 161 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 162 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission", |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 163 | "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 164 | "Lab Test": "erpnext.healthcare.web_form.lab_test.lab_test.has_website_permission", |
| 165 | "Consultation": "erpnext.healthcare.web_form.prescription.prescription.has_website_permission", |
| 166 | "Patient Appointment": "erpnext.healthcare.web_form.patient_appointments.patient_appointments.has_website_permission" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 167 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 168 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 169 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 170 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 171 | before_tests = "erpnext.setup.utils.before_tests" |
| 172 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 173 | standard_queries = { |
| 174 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list" |
| 175 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 176 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 177 | doc_events = { |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 178 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 179 | "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty", |
| 180 | "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] | 181 | }, |
| 182 | "User": { |
KanchanChauhan | 1dc26b1 | 2017-06-13 15:26:35 +0530 | [diff] [blame] | 183 | "after_insert": "frappe.contacts.doctype.contact.contact.update_contact", |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 184 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Rushabh Mehta | 0d6db6c | 2017-03-31 23:01:45 +0530 | [diff] [blame] | 185 | "on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions", |
| 186 | "erpnext.portal.utils.set_default_role"] |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 187 | }, |
Rushabh Mehta | f16f9c5 | 2016-04-08 17:20:50 +0530 | [diff] [blame] | 188 | ("Sales Taxes and Charges Template", 'Price List'): { |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 189 | "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings" |
| 190 | }, |
Rushabh Mehta | f16f9c5 | 2016-04-08 17:20:50 +0530 | [diff] [blame] | 191 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 192 | "Website Settings": { |
| 193 | "validate": "erpnext.portal.doctype.products_settings.products_settings.home_page_is_products" |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 194 | }, |
| 195 | "Payment Entry": { |
| 196 | "on_submit": "erpnext.accounts.doctype.payment_request.payment_request.make_status_as_paid" |
Rushabh Mehta | b3c8f44 | 2017-06-21 17:22:38 +0530 | [diff] [blame] | 197 | }, |
| 198 | 'Address': { |
| 199 | 'validate': 'erpnext.regional.india.utils.validate_gstin_for_india' |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 200 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 201 | } |
| 202 | |
| 203 | scheduler_events = { |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 204 | "hourly": [ |
rohitwaghchaure | 850eaa7 | 2017-09-15 16:16:36 +0530 | [diff] [blame] | 205 | "erpnext.accounts.doctype.subscription.subscription.make_subscription_entry", |
Rushabh Mehta | fe816c3 | 2016-11-08 18:18:40 +0530 | [diff] [blame] | 206 | 'erpnext.hr.doctype.daily_work_summary_settings.daily_work_summary_settings.trigger_emails' |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 207 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 208 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 209 | "erpnext.stock.reorder_item.reorder_item", |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 210 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 211 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
mbauskar | e1e25a0 | 2017-02-16 19:36:59 +0530 | [diff] [blame] | 212 | "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity", |
Rohit Waghchaure | 2f1db57 | 2016-11-08 12:39:33 +0530 | [diff] [blame] | 213 | "erpnext.controllers.accounts_controller.update_invoice_status", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 214 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
Rushabh Mehta | 13ec41a | 2015-12-10 12:31:36 +0530 | [diff] [blame] | 215 | "erpnext.hr.doctype.employee.employee.send_birthday_reminders", |
Nabin Hait | 4fdb052 | 2016-03-09 12:40:56 +0530 | [diff] [blame] | 216 | "erpnext.projects.doctype.task.task.set_tasks_as_overdue", |
Rushabh Mehta | 9dd58d4 | 2016-11-18 12:39:24 +0530 | [diff] [blame] | 217 | "erpnext.accounts.doctype.asset.depreciation.post_depreciation_entries", |
Manas Solanki | 253c53c | 2017-05-30 15:35:58 +0530 | [diff] [blame] | 218 | "erpnext.hr.doctype.daily_work_summary_settings.daily_work_summary_settings.send_summary", |
Prateeksha Singh | e012e24 | 2017-07-18 10:35:12 +0530 | [diff] [blame] | 219 | "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status", |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 220 | "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards", |
Nabin Hait | adbf8ad | 2017-07-31 20:45:36 +0530 | [diff] [blame] | 221 | "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history", |
Nabin Hait | 26507d7 | 2017-10-05 13:10:32 +0530 | [diff] [blame] | 222 | "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.update_latest_price_in_all_boms" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 223 | ] |
| 224 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 225 | |
Faris Ansari | 2c5b3e8 | 2017-07-13 18:37:18 +0530 | [diff] [blame] | 226 | email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" |
| 227 | |
Faris Ansari | 40d3ad2 | 2017-07-31 16:16:22 +0530 | [diff] [blame] | 228 | default_mail_footer = """ |
| 229 | <span> |
| 230 | Sent via |
| 231 | <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank"> |
| 232 | ERPNext |
| 233 | </a> |
| 234 | </span> |
| 235 | """ |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 236 | |
| 237 | get_translated_dict = { |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 238 | ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict" |
| 239 | } |
Rushabh Mehta | fe027b3 | 2016-03-28 13:21:43 +0530 | [diff] [blame] | 240 | |
| 241 | bot_parsers = [ |
| 242 | 'erpnext.utilities.bot.FindItemBot', |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 243 | ] |
Anand Doshi | f576f3b | 2016-06-25 19:51:48 +0530 | [diff] [blame] | 244 | |
| 245 | get_site_info = 'erpnext.utilities.get_site_info' |
Saurabh | 94c666a | 2016-11-08 20:35:50 +0530 | [diff] [blame] | 246 | |
Saurabh | 0d47d51 | 2017-03-14 14:46:05 +0530 | [diff] [blame] | 247 | payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account" |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 248 | |
| 249 | regional_overrides = { |
| 250 | 'India': { |
Nabin Hait | b962fc1 | 2017-07-17 18:02:31 +0530 | [diff] [blame] | 251 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method', |
| 252 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header': 'erpnext.regional.india.utils.get_itemised_tax_breakup_header', |
| 253 | 'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data': 'erpnext.regional.india.utils.get_itemised_tax_breakup_data' |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 254 | } |
| 255 | } |