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." |
| 7 | app_description = """## ERPNext |
| 8 | |
| 9 | ERPNext is a fully featured ERP system designed for Small and Medium Sized |
| 10 | business. ERPNext covers a wide range of features including Accounting, CRM, |
| 11 | Inventory management, Selling, Purchasing, Manufacturing, Projects, HR & |
| 12 | Payroll, Website, E-Commerce and much more. |
| 13 | |
| 14 | ERPNext is based on the Frappe Framework is highly customizable and extendable. |
| 15 | You can create Custom Form, Fields, Scripts and can also create your own Apps |
| 16 | to extend ERPNext functionality. |
| 17 | |
| 18 | ERPNext is Open Source under the GNU General Public Licence v3 and has been |
| 19 | listed as one of the Best Open Source Softwares in the world by my online |
| 20 | blogs. |
| 21 | |
| 22 | ### Links |
| 23 | |
| 24 | - Website: [https://erpnext.com](https://erpnext.com) |
| 25 | - GitHub: [https://github.com/frappe/erpnext](https://github.com/frappe/erpnext) |
| 26 | - Forum: [https://discuss.erpnext.com](https://discuss.erpnext.com) |
| 27 | - Frappe Framework: [https://frappe.io](https://frappe.io) |
| 28 | |
| 29 | """ |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 30 | app_icon = "icon-th" |
| 31 | app_color = "#e74c3c" |
Anand Doshi | f723032 | 2015-09-24 18:01:11 +0600 | [diff] [blame] | 32 | app_version = "6.3.2" |
Rushabh Mehta | ba02ce6 | 2015-07-22 15:07:25 +0530 | [diff] [blame] | 33 | github_link = "https://github.com/frappe/erpnext" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 34 | |
Anand Doshi | 0c3bb75 | 2014-07-09 12:59:56 +0530 | [diff] [blame] | 35 | error_report_email = "support@erpnext.com" |
| 36 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 37 | app_include_js = "assets/js/erpnext.min.js" |
| 38 | app_include_css = "assets/css/erpnext.css" |
| 39 | web_include_js = "assets/js/erpnext-web.min.js" |
Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 40 | web_include_css = "assets/erpnext/css/website.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 41 | |
| 42 | after_install = "erpnext.setup.install.after_install" |
| 43 | |
| 44 | boot_session = "erpnext.startup.boot.boot_session" |
| 45 | notification_config = "erpnext.startup.notifications.get_notification_config" |
| 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 | |
| 50 | # website |
| 51 | update_website_context = "erpnext.shopping_cart.utils.update_website_context" |
| 52 | my_account_context = "erpnext.shopping_cart.utils.update_my_account_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 53 | |
Rushabh Mehta | 4c46687 | 2015-04-02 22:00:34 +0530 | [diff] [blame] | 54 | email_append_to = ["Job Applicant", "Opportunity", "Issue"] |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 55 | |
Rushabh Mehta | 8f1391d | 2015-08-31 12:42:05 +0530 | [diff] [blame] | 56 | calendars = ["Task", "Production Order", "Time Log", "Leave Application", "Sales Order"] |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 57 | |
| 58 | website_generators = ["Item Group", "Item", "Sales Partner"] |
| 59 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 60 | website_context = { |
Rushabh Mehta | 5674c4f | 2015-04-16 15:09:42 +0530 | [diff] [blame] | 61 | "favicon": "/assets/erpnext/images/favicon.png", |
| 62 | "splash_image": "/assets/erpnext/images/splash.png" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 63 | } |
| 64 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 65 | website_route_rules = [ |
| 66 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 67 | {"from_route": "/orders/<path:name>", "to_route": "order", |
| 68 | "defaults": { |
| 69 | "doctype": "Sales Order", |
| 70 | "parents": [{"title": _("Orders"), "name": "orders"}] |
| 71 | } |
| 72 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 73 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 74 | {"from_route": "/invoices/<path:name>", "to_route": "order", |
| 75 | "defaults": { |
| 76 | "doctype": "Sales Invoice", |
| 77 | "parents": [{"title": _("Invoices"), "name": "invoices"}] |
| 78 | } |
| 79 | }, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 80 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 81 | {"from_route": "/shipments/<path:name>", "to_route": "order", |
| 82 | "defaults": { |
| 83 | "doctype": "Delivery Notes", |
| 84 | "parents": [{"title": _("Shipments"), "name": "shipments"}] |
| 85 | } |
| 86 | } |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 87 | ] |
| 88 | |
| 89 | has_website_permission = { |
| 90 | "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 91 | "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission", |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 92 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 93 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 94 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 95 | |
Anand Doshi | 89b8d11 | 2015-09-29 20:06:53 +0530 | [diff] [blame] | 96 | permission_query_conditions = { |
| 97 | "Contact": "erpnext.utilities.address_and_contact.get_permission_query_conditions_for_contact", |
| 98 | "Address": "erpnext.utilities.address_and_contact.get_permission_query_conditions_for_address" |
| 99 | } |
| 100 | |
| 101 | has_permission = { |
| 102 | "Contact": "erpnext.utilities.address_and_contact.has_permission", |
| 103 | "Address": "erpnext.utilities.address_and_contact.has_permission" |
| 104 | } |
| 105 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 106 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 107 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 108 | before_tests = "erpnext.setup.utils.before_tests" |
| 109 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 110 | standard_queries = { |
| 111 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list" |
| 112 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 113 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 114 | doc_events = { |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 115 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 116 | "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty", |
| 117 | "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] | 118 | }, |
| 119 | "User": { |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 120 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Anand Doshi | a8ce570 | 2014-05-27 13:46:42 +0530 | [diff] [blame] | 121 | "on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions" |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 122 | }, |
Rushabh Mehta | bcdea3e | 2015-05-06 18:45:47 +0530 | [diff] [blame] | 123 | "Sales Taxes and Charges Template": { |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 124 | "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings" |
| 125 | }, |
| 126 | "Price List": { |
| 127 | "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings" |
| 128 | }, |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | scheduler_events = { |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 132 | "hourly": [ |
| 133 | "erpnext.controllers.recurring_document.create_recurring_documents" |
| 134 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 135 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 136 | "erpnext.stock.reorder_item.reorder_item", |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 137 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 138 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 139 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
| 140 | "erpnext.hr.doctype.employee.employee.send_birthday_reminders" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 141 | ] |
| 142 | } |
Anand Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 143 | |
Anand Doshi | c5f919e | 2015-09-16 19:20:55 +0530 | [diff] [blame] | 144 | default_mail_footer = """<div style="text-align: center;"> |
Nabin Hait | b3a142f | 2015-05-26 12:13:30 +0530 | [diff] [blame] | 145 | <a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;"> |
| 146 | Sent via ERPNext |
Anand Doshi | adcf857 | 2015-03-27 17:42:03 +0530 | [diff] [blame] | 147 | </a> |
| 148 | </div>""" |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 149 | |
| 150 | get_translated_dict = { |
| 151 | ("page", "setup-wizard"): "frappe.geo.country_info.get_translated_dict", |
| 152 | ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict" |
| 153 | } |