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 | |
Ameya Shenoy | 49647bf | 2018-11-08 12:48:35 +0530 | [diff] [blame] | 14 | develop_version = '12.x.x-develop' |
Sagar Vora | 64d774d | 2019-01-22 16:05:56 +0550 | [diff] [blame^] | 15 | staging_version = '11.0.3-beta.35' |
Rushabh Mehta | db206f2 | 2017-03-10 09:38:58 +0530 | [diff] [blame] | 16 | |
Anand Doshi | 0c3bb75 | 2014-07-09 12:59:56 +0530 | [diff] [blame] | 17 | error_report_email = "support@erpnext.com" |
| 18 | |
Prateeksha Singh | 0738483 | 2018-06-14 09:11:05 +0530 | [diff] [blame] | 19 | docs_app = "foundation" |
| 20 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 21 | app_include_js = "assets/js/erpnext.min.js" |
| 22 | app_include_css = "assets/css/erpnext.css" |
| 23 | web_include_js = "assets/js/erpnext-web.min.js" |
Solufyin | 3be899c | 2018-08-07 18:28:39 +0530 | [diff] [blame] | 24 | web_include_css = "assets/css/erpnext-web.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 25 | |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 26 | doctype_js = { |
| 27 | "Communication": "public/js/communication.js", |
Charles-Henri Decultot | efd776d | 2018-10-03 07:11:26 +0200 | [diff] [blame] | 28 | "Event": "public/js/event.js" |
mbauskar | f54b104 | 2017-03-13 16:32:46 +0530 | [diff] [blame] | 29 | } |
| 30 | |
Neil Trini Lasrado | 771fbb8 | 2018-08-24 15:15:56 +0530 | [diff] [blame] | 31 | welcome_email = "erpnext.setup.utils.welcome_email" |
| 32 | |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 33 | # setup wizard |
| 34 | setup_wizard_requires = "assets/erpnext/js/setup_wizard.js" |
Prateeksha Singh | 8b0b56d | 2017-12-21 11:55:58 +0530 | [diff] [blame] | 35 | setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 36 | setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test" |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 37 | |
Rushabh Mehta | d55bdcf | 2015-12-31 11:12:48 +0530 | [diff] [blame] | 38 | before_install = "erpnext.setup.install.check_setup_wizard_not_completed" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 39 | after_install = "erpnext.setup.install.after_install" |
| 40 | |
| 41 | boot_session = "erpnext.startup.boot.boot_session" |
| 42 | notification_config = "erpnext.startup.notifications.get_notification_config" |
Rushabh Mehta | 05ce7ec | 2017-02-22 16:15:43 +0530 | [diff] [blame] | 43 | get_help_messages = "erpnext.utilities.activation.get_help_messages" |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 44 | get_user_progress_slides = "erpnext.utilities.user_progress.get_user_progress_slides" |
| 45 | 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] | 46 | |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 47 | on_session_creation = "erpnext.shopping_cart.utils.set_cart_count" |
| 48 | on_logout = "erpnext.shopping_cart.utils.clear_cart_count" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 49 | |
Manas Solanki | 84e9d45 | 2017-11-28 18:04:08 +0530 | [diff] [blame] | 50 | treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', 'Assessment Group'] |
Rushabh Mehta | 764aa92 | 2016-05-02 13:28:46 +0530 | [diff] [blame] | 51 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 52 | # website |
| 53 | update_website_context = "erpnext.shopping_cart.utils.update_website_context" |
| 54 | my_account_context = "erpnext.shopping_cart.utils.update_my_account_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 55 | |
Makarand Bauskar | 1b67d71 | 2017-10-04 15:55:56 +0530 | [diff] [blame] | 56 | email_append_to = ["Job Applicant", "Lead", "Opportunity", "Issue"] |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +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 | |
hiousi | d81e9f3 | 2017-11-17 07:12:24 +0100 | [diff] [blame] | 60 | |
Kanchan Chauhan | 1f3d5b7 | 2016-03-01 11:33:49 +0530 | [diff] [blame] | 61 | |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 62 | domains = { |
Ameya Shenoy | 5c62368 | 2017-12-06 18:36:27 +0530 | [diff] [blame] | 63 | 'Agriculture': 'erpnext.domains.agriculture', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 64 | 'Distribution': 'erpnext.domains.distribution', |
| 65 | 'Education': 'erpnext.domains.education', |
| 66 | 'Healthcare': 'erpnext.domains.healthcare', |
| 67 | 'Hospitality': 'erpnext.domains.hospitality', |
| 68 | 'Manufacturing': 'erpnext.domains.manufacturing', |
Zarrar | de8f612 | 2017-12-13 18:36:08 +0530 | [diff] [blame] | 69 | 'Non Profit': 'erpnext.domains.non_profit', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 70 | 'Retail': 'erpnext.domains.retail', |
| 71 | 'Services': 'erpnext.domains.services', |
| 72 | } |
| 73 | |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 74 | website_generators = ["Item Group", "Item", "BOM", "Sales Partner", |
| 75 | "Job Opening", "Student Admission"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 76 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 77 | website_context = { |
Rushabh Mehta | 5674c4f | 2015-04-16 15:09:42 +0530 | [diff] [blame] | 78 | "favicon": "/assets/erpnext/images/favicon.png", |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 79 | "splash_image": "/assets/erpnext/images/erp-icon.svg" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 80 | } |
| 81 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 82 | website_route_rules = [ |
| 83 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 84 | {"from_route": "/orders/<path:name>", "to_route": "order", |
| 85 | "defaults": { |
| 86 | "doctype": "Sales Order", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 87 | "parents": [{"label": _("Orders"), "route": "orders"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 88 | } |
| 89 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 90 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 91 | {"from_route": "/invoices/<path:name>", "to_route": "order", |
| 92 | "defaults": { |
| 93 | "doctype": "Sales Invoice", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 94 | "parents": [{"label": _("Invoices"), "route": "invoices"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 95 | } |
| 96 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 97 | {"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"}, |
| 98 | {"from_route": "/supplier-quotations/<path:name>", "to_route": "order", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 99 | "defaults": { |
| 100 | "doctype": "Supplier Quotation", |
Brown-Harry Boma | d3fa191 | 2017-09-27 08:23:38 +0100 | [diff] [blame] | 101 | "parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}] |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 102 | } |
| 103 | }, |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 104 | {"from_route": "/quotations", "to_route": "Quotation"}, |
| 105 | {"from_route": "/quotations/<path:name>", "to_route": "order", |
| 106 | "defaults": { |
| 107 | "doctype": "Quotation", |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 108 | "parents": [{"label": _("Quotations"), "route": "quotations"}] |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 109 | } |
| 110 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 111 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 112 | {"from_route": "/shipments/<path:name>", "to_route": "order", |
| 113 | "defaults": { |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 114 | "doctype": "Delivery Note", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 115 | "parents": [{"label": _("Shipments"), "route": "shipments"}] |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 116 | } |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 117 | }, |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 118 | {"from_route": "/rfq", "to_route": "Request for Quotation"}, |
| 119 | {"from_route": "/rfq/<path:name>", "to_route": "rfq", |
| 120 | "defaults": { |
| 121 | "doctype": "Request for Quotation", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 122 | "parents": [{"label": _("Request for Quotation"), "route": "rfq"}] |
rohitwaghchaure | a1064a6 | 2016-03-03 14:00:35 +0530 | [diff] [blame] | 123 | } |
| 124 | }, |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 125 | {"from_route": "/addresses", "to_route": "Address"}, |
| 126 | {"from_route": "/addresses/<path:name>", "to_route": "addresses", |
| 127 | "defaults": { |
| 128 | "doctype": "Address", |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 129 | "parents": [{"label": _("Addresses"), "route": "addresses"}] |
Kanchan Chauhan | 1605ff0 | 2016-07-04 14:28:09 +0530 | [diff] [blame] | 130 | } |
| 131 | }, |
Kanchan Chauhan | 2e8cc89 | 2016-02-19 17:27:23 +0530 | [diff] [blame] | 132 | {"from_route": "/jobs", "to_route": "Job Opening"}, |
Neil Trini Lasrado | 83d8120 | 2016-09-15 14:48:13 +0530 | [diff] [blame] | 133 | {"from_route": "/admissions", "to_route": "Student Admission"}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 134 | {"from_route": "/boms", "to_route": "BOM"}, |
| 135 | {"from_route": "/timesheets", "to_route": "Timesheet"}, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 136 | ] |
| 137 | |
Rushabh Mehta | b9cdb05 | 2017-03-08 12:33:43 +0530 | [diff] [blame] | 138 | standard_portal_menu_items = [ |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 139 | {"title": _("Personal Details"), "route": "/personal-details", "reference_doctype": "Patient", "role": "Patient"}, |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 140 | {"title": _("Projects"), "route": "/project", "reference_doctype": "Project"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 141 | {"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] | 142 | {"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"}, |
| 143 | {"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 144 | {"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"}, |
| 145 | {"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"}, |
| 146 | {"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"}, |
| 147 | {"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"}, |
Neil Trini Lasrado | 3f0a581 | 2016-07-19 14:17:33 +0530 | [diff] [blame] | 148 | {"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 149 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 150 | {"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"}, |
| 151 | {"title": _("Lab Test"), "route": "/lab-test", "reference_doctype": "Lab Test", "role":"Patient"}, |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 152 | {"title": _("Prescription"), "route": "/prescription", "reference_doctype": "Patient Encounter", "role":"Patient"}, |
Manas Solanki | e716da0 | 2017-09-18 16:00:34 +0530 | [diff] [blame] | 153 | {"title": _("Patient Appointment"), "route": "/patient-appointments", "reference_doctype": "Patient Appointment", "role":"Patient"}, |
| 154 | {"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"}, |
Manas Solanki | 0518001 | 2017-10-05 14:31:31 +0530 | [diff] [blame] | 155 | {"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"}, |
Vishal | a6a302f | 2017-10-31 13:27:49 +0530 | [diff] [blame] | 156 | {"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission"}, |
asbasawaraj | 4c26348 | 2018-06-15 10:04:19 +0530 | [diff] [blame] | 157 | {"title": _("Certification"), "route": "/certification", "reference_doctype": "Certification Application"}, |
Rushabh Mehta | fc800b3 | 2016-09-23 21:51:51 +0530 | [diff] [blame] | 158 | ] |
| 159 | |
| 160 | default_roles = [ |
Rushabh Mehta | 95439db | 2017-01-14 00:25:22 +0530 | [diff] [blame] | 161 | {'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'}, |
| 162 | {'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'}, |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 163 | {'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'}, |
Rushabh Mehta | c78b311 | 2016-03-30 12:29:48 +0530 | [diff] [blame] | 164 | ] |
| 165 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 166 | has_website_permission = { |
| 167 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Makarand Bauskar | 9306aff | 2017-07-21 15:19:47 +0530 | [diff] [blame] | 168 | "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 169 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rohit Waghchaure | 21499e8 | 2016-09-21 16:49:58 +0530 | [diff] [blame] | 170 | "Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 171 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Vishal Dhayagude | edb2749 | 2017-07-25 10:53:12 +0530 | [diff] [blame] | 172 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission", |
Rushabh Mehta | f056974 | 2017-09-13 12:52:30 +0530 | [diff] [blame] | 173 | "Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 174 | "Lab Test": "erpnext.healthcare.web_form.lab_test.lab_test.has_website_permission", |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 175 | "Patient Encounter": "erpnext.healthcare.web_form.prescription.prescription.has_website_permission", |
| 176 | "Patient Appointment": "erpnext.healthcare.web_form.patient_appointments.patient_appointments.has_website_permission", |
| 177 | "Patient": "erpnext.healthcare.web_form.personal_details.personal_details.has_website_permission" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 178 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 179 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 180 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 181 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 182 | before_tests = "erpnext.setup.utils.before_tests" |
| 183 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 184 | standard_queries = { |
| 185 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list" |
| 186 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 187 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 188 | doc_events = { |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 189 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 190 | "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty", |
| 191 | "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] | 192 | }, |
| 193 | "User": { |
KanchanChauhan | 1dc26b1 | 2017-06-13 15:26:35 +0530 | [diff] [blame] | 194 | "after_insert": "frappe.contacts.doctype.contact.contact.update_contact", |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 195 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Rushabh Mehta | 0d6db6c | 2017-03-31 23:01:45 +0530 | [diff] [blame] | 196 | "on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions", |
| 197 | "erpnext.portal.utils.set_default_role"] |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 198 | }, |
Rushabh Mehta | f16f9c5 | 2016-04-08 17:20:50 +0530 | [diff] [blame] | 199 | ("Sales Taxes and Charges Template", 'Price List'): { |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 200 | "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings" |
| 201 | }, |
Rushabh Mehta | f16f9c5 | 2016-04-08 17:20:50 +0530 | [diff] [blame] | 202 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 203 | "Website Settings": { |
| 204 | "validate": "erpnext.portal.doctype.products_settings.products_settings.home_page_is_products" |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 205 | }, |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 206 | "Sales Invoice": { |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 207 | "on_submit": "erpnext.regional.france.utils.create_transaction_log", |
Nabin Hait | 0357fbc | 2018-03-09 13:19:52 +0530 | [diff] [blame] | 208 | "on_trash": "erpnext.regional.check_deletion_permission" |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 209 | }, |
Saurabh | e4e8954 | 2016-07-21 20:26:46 +0530 | [diff] [blame] | 210 | "Payment Entry": { |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 211 | "on_submit": ["erpnext.regional.france.utils.create_transaction_log", "erpnext.accounts.doctype.payment_request.payment_request.make_status_as_paid"], |
Nabin Hait | 0357fbc | 2018-03-09 13:19:52 +0530 | [diff] [blame] | 212 | "on_trash": "erpnext.regional.check_deletion_permission" |
Rushabh Mehta | b3c8f44 | 2017-06-21 17:22:38 +0530 | [diff] [blame] | 213 | }, |
| 214 | 'Address': { |
| 215 | 'validate': 'erpnext.regional.india.utils.validate_gstin_for_india' |
Nabin Hait | 619c42b | 2018-01-10 17:48:03 +0530 | [diff] [blame] | 216 | }, |
Vishal Dhayagude | 2505c74 | 2018-04-04 11:05:21 +0530 | [diff] [blame] | 217 | ('Sales Invoice', 'Purchase Invoice', 'Delivery Note'): { |
Nabin Hait | 619c42b | 2018-01-10 17:48:03 +0530 | [diff] [blame] | 218 | 'validate': 'erpnext.regional.india.utils.set_place_of_supply' |
Shridhar Patil | 4987c4e | 2018-07-03 10:10:04 +0530 | [diff] [blame] | 219 | }, |
| 220 | "Contact":{ |
| 221 | "on_trash": "erpnext.support.doctype.issue.issue.update_issue" |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 222 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 223 | } |
| 224 | |
| 225 | scheduler_events = { |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 226 | "all": [ |
| 227 | "erpnext.projects.doctype.project.project.project_status_update_reminder" |
| 228 | ], |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 229 | "hourly": [ |
tundebabzy | 0ec4452 | 2018-03-01 11:33:03 +0100 | [diff] [blame] | 230 | '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] | 231 | "erpnext.accounts.doctype.subscription.subscription.process_all", |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 232 | "erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details", |
| 233 | "erpnext.projects.doctype.project.project.hourly_reminder", |
| 234 | "erpnext.projects.doctype.project.project.collect_project_status" |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 235 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 236 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 237 | "erpnext.stock.reorder_item.reorder_item", |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 238 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 239 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
mbauskar | e1e25a0 | 2017-02-16 19:36:59 +0530 | [diff] [blame] | 240 | "erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity", |
Rohit Waghchaure | 2f1db57 | 2016-11-08 12:39:33 +0530 | [diff] [blame] | 241 | "erpnext.controllers.accounts_controller.update_invoice_status", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 242 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
Rushabh Mehta | 13ec41a | 2015-12-10 12:31:36 +0530 | [diff] [blame] | 243 | "erpnext.hr.doctype.employee.employee.send_birthday_reminders", |
Nabin Hait | 4fdb052 | 2016-03-09 12:40:56 +0530 | [diff] [blame] | 244 | "erpnext.projects.doctype.task.task.set_tasks_as_overdue", |
Kanchan Chauhan | e58a41a | 2017-10-17 15:17:24 +0530 | [diff] [blame] | 245 | "erpnext.assets.doctype.asset.depreciation.post_depreciation_entries", |
Suraj Shetty | d3069fe | 2018-02-21 15:15:43 +0530 | [diff] [blame] | 246 | "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] | 247 | "erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status", |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 248 | "erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards", |
Nabin Hait | adbf8ad | 2017-07-31 20:45:36 +0530 | [diff] [blame] | 249 | "erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history", |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 250 | "erpnext.assets.doctype.asset.asset.update_maintenance_status", |
Rohan Bansal | bf0f0aa | 2018-05-23 15:06:45 +0530 | [diff] [blame] | 251 | "erpnext.assets.doctype.asset.asset.make_post_gl_entry", |
Himanshu Mishra | 7aabef2 | 2018-06-28 23:43:23 +0530 | [diff] [blame] | 252 | "erpnext.crm.doctype.contract.contract.update_status_for_contracts", |
Rohit Waghchaure | 425dff9 | 2019-01-17 12:49:45 +0530 | [diff] [blame] | 253 | "erpnext.projects.doctype.project.project.update_project_sales_billing", |
| 254 | "erpnext.projects.doctype.project.project.send_project_status_email_to_users" |
KanchanChauhan | 73bd3cb | 2018-09-05 11:01:35 +0530 | [diff] [blame] | 255 | ], |
| 256 | "daily_long": [ |
| 257 | "erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.update_latest_price_in_all_boms" |
| 258 | ], |
Manas Solanki | 0393848 | 2018-05-14 16:16:46 +0530 | [diff] [blame] | 259 | "monthly": [ |
Zarrar | e83ff38 | 2018-09-21 15:45:40 +0530 | [diff] [blame] | 260 | "erpnext.accounts.deferred_revenue.convert_deferred_revenue_to_income", |
| 261 | "erpnext.accounts.deferred_revenue.convert_deferred_expense_to_expense", |
Ranjith Kurungadam | 375db61 | 2018-06-01 16:09:28 +0530 | [diff] [blame] | 262 | "erpnext.hr.utils.allocate_earned_leaves" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 263 | ] |
| 264 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 265 | |
Faris Ansari | 2c5b3e8 | 2017-07-13 18:37:18 +0530 | [diff] [blame] | 266 | email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" |
| 267 | |
Faris Ansari | 40d3ad2 | 2017-07-31 16:16:22 +0530 | [diff] [blame] | 268 | default_mail_footer = """ |
| 269 | <span> |
| 270 | Sent via |
| 271 | <a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank"> |
| 272 | ERPNext |
| 273 | </a> |
| 274 | </span> |
| 275 | """ |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 276 | |
| 277 | get_translated_dict = { |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 278 | ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict" |
| 279 | } |
Rushabh Mehta | fe027b3 | 2016-03-28 13:21:43 +0530 | [diff] [blame] | 280 | |
| 281 | bot_parsers = [ |
| 282 | 'erpnext.utilities.bot.FindItemBot', |
Rushabh Mehta | 0c76f21 | 2016-04-01 11:53:50 +0530 | [diff] [blame] | 283 | ] |
Anand Doshi | f576f3b | 2016-06-25 19:51:48 +0530 | [diff] [blame] | 284 | |
| 285 | get_site_info = 'erpnext.utilities.get_site_info' |
Saurabh | 94c666a | 2016-11-08 20:35:50 +0530 | [diff] [blame] | 286 | |
Saurabh | 0d47d51 | 2017-03-14 14:46:05 +0530 | [diff] [blame] | 287 | payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account" |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 288 | |
| 289 | regional_overrides = { |
Charles-Henri Decultot | b8c088e | 2018-02-21 06:37:33 +0100 | [diff] [blame] | 290 | 'France': { |
| 291 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.france.utils.test_method' |
| 292 | }, |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 293 | 'India': { |
Nabin Hait | b962fc1 | 2017-07-17 18:02:31 +0530 | [diff] [blame] | 294 | 'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method', |
| 295 | '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] | 296 | '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] | 297 | 'erpnext.accounts.party.get_regional_address_details': 'erpnext.regional.india.utils.get_regional_address_details', |
| 298 | 'erpnext.hr.utils.calculate_annual_eligible_hra_exemption': 'erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption', |
| 299 | 'erpnext.hr.utils.calculate_hra_exemption_for_period': 'erpnext.regional.india.utils.calculate_hra_exemption_for_period' |
rohitwaghchaure | d452668 | 2017-12-28 14:20:13 +0530 | [diff] [blame] | 300 | }, |
| 301 | 'United Arab Emirates': { |
| 302 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data' |
| 303 | }, |
| 304 | 'Saudi Arabia': { |
| 305 | 'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data' |
Rushabh Mehta | 7231f29 | 2017-07-13 15:00:56 +0530 | [diff] [blame] | 306 | } |
Manas Solanki | 2f4e5ee | 2018-05-15 15:25:14 +0530 | [diff] [blame] | 307 | } |