blob: 2c647e8803fcfafb49a5c720db2ba8a956000559 [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Rushabh Mehta156ce602015-09-11 18:49:59 +05302from frappe import _
3
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05304app_name = "erpnext"
5app_title = "ERPNext"
Rushabh Mehtaba02ce62015-07-22 15:07:25 +05306app_publisher = "Frappe Technologies Pvt. Ltd."
7app_description = """## ERPNext
8
9ERPNext is a fully featured ERP system designed for Small and Medium Sized
10business. ERPNext covers a wide range of features including Accounting, CRM,
11Inventory management, Selling, Purchasing, Manufacturing, Projects, HR &
12Payroll, Website, E-Commerce and much more.
13
14ERPNext is based on the Frappe Framework is highly customizable and extendable.
15You can create Custom Form, Fields, Scripts and can also create your own Apps
16to extend ERPNext functionality.
17
18ERPNext is Open Source under the GNU General Public Licence v3 and has been
19listed as one of the Best Open Source Softwares in the world by my online
20blogs.
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 Mehta4ceb20e2014-05-02 12:14:03 +053030app_icon = "icon-th"
31app_color = "#e74c3c"
Nabin Hait02a56b42015-10-29 17:05:06 +060032app_version = "6.6.7"
Rushabh Mehta7d23e422015-11-02 10:45:18 +053033source_link = "https://github.com/frappe/erpnext"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053034
Anand Doshi0c3bb752014-07-09 12:59:56 +053035error_report_email = "support@erpnext.com"
36
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053037app_include_js = "assets/js/erpnext.min.js"
38app_include_css = "assets/css/erpnext.css"
39web_include_js = "assets/js/erpnext-web.min.js"
Anand Doshida858cc2015-02-24 17:50:44 +053040web_include_css = "assets/erpnext/css/website.css"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053041
42after_install = "erpnext.setup.install.after_install"
43
44boot_session = "erpnext.startup.boot.boot_session"
45notification_config = "erpnext.startup.notifications.get_notification_config"
46
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053047on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
48on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
Anand Doshif9fc04c2015-02-23 22:14:12 +053049
50# website
51update_website_context = "erpnext.shopping_cart.utils.update_website_context"
52my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053053
Rushabh Mehta4c466872015-04-02 22:00:34 +053054email_append_to = ["Job Applicant", "Opportunity", "Issue"]
Anand Doshif9fc04c2015-02-23 22:14:12 +053055
Saurabh1d753c92015-10-06 15:21:23 +053056calendars = ["Task", "Production Order", "Time Log", "Leave Application", "Sales Order", "Holiday List"]
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053057
58website_generators = ["Item Group", "Item", "Sales Partner"]
59
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053060website_context = {
Rushabh Mehta5674c4f2015-04-16 15:09:42 +053061 "favicon": "/assets/erpnext/images/favicon.png",
62 "splash_image": "/assets/erpnext/images/splash.png"
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053063}
64
Anand Doshif9fc04c2015-02-23 22:14:12 +053065website_route_rules = [
66 {"from_route": "/orders", "to_route": "Sales Order"},
Rushabh Mehta156ce602015-09-11 18:49:59 +053067 {"from_route": "/orders/<path:name>", "to_route": "order",
68 "defaults": {
69 "doctype": "Sales Order",
70 "parents": [{"title": _("Orders"), "name": "orders"}]
71 }
72 },
Anand Doshif9fc04c2015-02-23 22:14:12 +053073 {"from_route": "/invoices", "to_route": "Sales Invoice"},
Rushabh Mehta156ce602015-09-11 18:49:59 +053074 {"from_route": "/invoices/<path:name>", "to_route": "order",
75 "defaults": {
76 "doctype": "Sales Invoice",
77 "parents": [{"title": _("Invoices"), "name": "invoices"}]
78 }
79 },
Anand Doshif9fc04c2015-02-23 22:14:12 +053080 {"from_route": "/shipments", "to_route": "Delivery Note"},
Rushabh Mehta156ce602015-09-11 18:49:59 +053081 {"from_route": "/shipments/<path:name>", "to_route": "order",
82 "defaults": {
83 "doctype": "Delivery Notes",
84 "parents": [{"title": _("Shipments"), "name": "shipments"}]
85 }
86 }
Anand Doshif9fc04c2015-02-23 22:14:12 +053087]
88
89has_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 Mehtaa33d4682015-06-01 17:15:42 +053092 "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
93 "Issue": "erpnext.support.doctype.issue.issue.has_website_permission"
Anand Doshif9fc04c2015-02-23 22:14:12 +053094}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053095
Anand Doshi89b8d112015-09-29 20:06:53 +053096permission_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
101has_permission = {
102 "Contact": "erpnext.utilities.address_and_contact.has_permission",
103 "Address": "erpnext.utilities.address_and_contact.has_permission"
104}
105
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530106dump_report_map = "erpnext.startup.report_data_map.data_map"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530107
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530108before_tests = "erpnext.setup.utils.before_tests"
109
Rushabh Mehta308e6ea2015-03-24 17:34:58 +0530110standard_queries = {
111 "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
112}
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530113
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530114doc_events = {
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530115 "Stock Entry": {
Nabin Hait4acd4312014-11-04 15:32:31 +0530116 "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 Doshi648062d2014-05-05 16:46:14 +0530118 },
119 "User": {
Anand Doshi49856912014-05-28 18:49:13 +0530120 "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
Anand Doshia8ce5702014-05-27 13:46:42 +0530121 "on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530122 },
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530123 "Sales Taxes and Charges Template": {
Rushabh Mehta3daa49a2014-10-21 16:16:30 +0530124 "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 Mehta4ceb20e2014-05-02 12:14:03 +0530129}
130
131scheduler_events = {
Nabin Hait75807232015-07-02 14:41:27 +0530132 "hourly": [
133 "erpnext.controllers.recurring_document.create_recurring_documents"
134 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530135 "daily": [
Rushabh Mehtaf8509872014-10-08 12:03:19 +0530136 "erpnext.stock.reorder_item.reorder_item",
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530137 "erpnext.setup.doctype.email_digest.email_digest.send",
Nabin Hait606af962014-12-15 11:57:03 +0530138 "erpnext.support.doctype.issue.issue.auto_close_tickets",
Rushabh Mehta5bceebc2015-01-23 15:22:13 +0530139 "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
140 "erpnext.hr.doctype.employee.employee.send_birthday_reminders"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +0530141 ]
142}
Anand Doshi7f41ff22014-06-26 12:02:55 +0530143
Anand Doshic5f919e2015-09-16 19:20:55 +0530144default_mail_footer = """<div style="text-align: center;">
Nabin Haitb3a142f2015-05-26 12:13:30 +0530145 <a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;">
146 Sent via ERPNext
Anand Doshiadcf8572015-03-27 17:42:03 +0530147 </a>
148</div>"""
Anand Doshic82331b2015-02-12 18:58:28 +0530149
150get_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}