blob: 30032f8b493dd88f6e677de85a9d474856193e04 [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05302app_name = "erpnext"
3app_title = "ERPNext"
Anand Doshi885e0742015-03-03 14:55:30 +05304app_publisher = "Frappe Technologies Pvt. Ltd. and Contributors"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05305app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations"
6app_icon = "icon-th"
7app_color = "#e74c3c"
Nabin Hait54ade0d2015-07-13 14:56:23 +06008app_version = "5.1.6"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +05309
Anand Doshi0c3bb752014-07-09 12:59:56 +053010error_report_email = "support@erpnext.com"
11
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053012app_include_js = "assets/js/erpnext.min.js"
13app_include_css = "assets/css/erpnext.css"
14web_include_js = "assets/js/erpnext-web.min.js"
Anand Doshida858cc2015-02-24 17:50:44 +053015web_include_css = "assets/erpnext/css/website.css"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053016
17after_install = "erpnext.setup.install.after_install"
18
19boot_session = "erpnext.startup.boot.boot_session"
20notification_config = "erpnext.startup.notifications.get_notification_config"
21
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053022on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
23on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
Anand Doshif9fc04c2015-02-23 22:14:12 +053024
25# website
26update_website_context = "erpnext.shopping_cart.utils.update_website_context"
27my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053028
Rushabh Mehta4c466872015-04-02 22:00:34 +053029email_append_to = ["Job Applicant", "Opportunity", "Issue"]
Anand Doshif9fc04c2015-02-23 22:14:12 +053030
Rushabh Mehta621d6ea2015-07-08 12:39:27 +053031calendars = ["Task", "Production Order", "Time Log", "Leave Application"]
32
33website_generators = ["Item Group", "Item", "Sales Partner"]
34
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053035website_context = {
Rushabh Mehta5674c4f2015-04-16 15:09:42 +053036 "favicon": "/assets/erpnext/images/favicon.png",
37 "splash_image": "/assets/erpnext/images/splash.png"
Rushabh Mehta2e7c36e2015-04-16 12:41:42 +053038}
39
Anand Doshif9fc04c2015-02-23 22:14:12 +053040website_route_rules = [
41 {"from_route": "/orders", "to_route": "Sales Order"},
Anand Doshie4409142015-05-26 17:37:05 -040042 {"from_route": "/orders/<path:name>", "to_route": "print", "defaults": {"doctype": "Sales Order"}},
Anand Doshif9fc04c2015-02-23 22:14:12 +053043 {"from_route": "/invoices", "to_route": "Sales Invoice"},
Anand Doshie4409142015-05-26 17:37:05 -040044 {"from_route": "/invoices/<path:name>", "to_route": "print", "defaults": {"doctype": "Sales Invoice"}},
Anand Doshif9fc04c2015-02-23 22:14:12 +053045 {"from_route": "/shipments", "to_route": "Delivery Note"},
Rushabh Mehtaa33d4682015-06-01 17:15:42 +053046 {"from_route": "/shipments/<path:name>", "to_route": "print", "defaults": {"doctype": "Delivery Note"}}
Anand Doshif9fc04c2015-02-23 22:14:12 +053047]
48
49has_website_permission = {
50 "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
51 "Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
Rushabh Mehtaa33d4682015-06-01 17:15:42 +053052 "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
53 "Issue": "erpnext.support.doctype.issue.issue.has_website_permission"
Anand Doshif9fc04c2015-02-23 22:14:12 +053054}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053055
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053056dump_report_map = "erpnext.startup.report_data_map.data_map"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053057
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053058before_tests = "erpnext.setup.utils.before_tests"
59
Rushabh Mehta308e6ea2015-03-24 17:34:58 +053060standard_queries = {
61 "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
62}
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053063
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053064doc_events = {
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053065 "Stock Entry": {
Nabin Hait4acd4312014-11-04 15:32:31 +053066 "on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
67 "on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty"
Anand Doshi648062d2014-05-05 16:46:14 +053068 },
69 "User": {
Anand Doshi49856912014-05-28 18:49:13 +053070 "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
Anand Doshia8ce5702014-05-27 13:46:42 +053071 "on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053072 },
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +053073 "Sales Taxes and Charges Template": {
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053074 "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
75 },
76 "Price List": {
77 "on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
78 },
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053079}
80
81scheduler_events = {
Nabin Hait75807232015-07-02 14:41:27 +053082 "hourly": [
83 "erpnext.controllers.recurring_document.create_recurring_documents"
84 ],
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053085 "daily": [
Rushabh Mehtaf8509872014-10-08 12:03:19 +053086 "erpnext.stock.reorder_item.reorder_item",
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053087 "erpnext.setup.doctype.email_digest.email_digest.send",
Nabin Hait606af962014-12-15 11:57:03 +053088 "erpnext.support.doctype.issue.issue.auto_close_tickets",
Rushabh Mehta5bceebc2015-01-23 15:22:13 +053089 "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
90 "erpnext.hr.doctype.employee.employee.send_birthday_reminders"
Rushabh Mehta4ceb20e2014-05-02 12:14:03 +053091 ],
92 "daily_long": [
93 "erpnext.setup.doctype.backup_manager.backup_manager.take_backups_daily"
94 ],
95 "weekly_long": [
96 "erpnext.setup.doctype.backup_manager.backup_manager.take_backups_weekly"
97 ]
98}
Anand Doshi7f41ff22014-06-26 12:02:55 +053099
Rushabh Mehtaf29a6182015-05-25 10:50:48 +0530100default_mail_footer = """<div style="padding: 15px; text-align: center;">
Nabin Haitb3a142f2015-05-26 12:13:30 +0530101 <a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;">
102 Sent via ERPNext
Anand Doshiadcf8572015-03-27 17:42:03 +0530103 </a>
104</div>"""
Anand Doshic82331b2015-02-12 18:58:28 +0530105
106get_translated_dict = {
107 ("page", "setup-wizard"): "frappe.geo.country_info.get_translated_dict",
108 ("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
109}