Anand Doshi | d57e793 | 2015-02-24 12:24:53 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 2 | app_name = "erpnext" |
| 3 | app_title = "ERPNext" |
Anand Doshi | 885e074 | 2015-03-03 14:55:30 +0530 | [diff] [blame] | 4 | app_publisher = "Frappe Technologies Pvt. Ltd. and Contributors" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 5 | app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations" |
| 6 | app_icon = "icon-th" |
| 7 | app_color = "#e74c3c" |
Nabin Hait | 54ade0d | 2015-07-13 14:56:23 +0600 | [diff] [blame] | 8 | app_version = "5.1.6" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 9 | |
Anand Doshi | 0c3bb75 | 2014-07-09 12:59:56 +0530 | [diff] [blame] | 10 | error_report_email = "support@erpnext.com" |
| 11 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 12 | app_include_js = "assets/js/erpnext.min.js" |
| 13 | app_include_css = "assets/css/erpnext.css" |
| 14 | web_include_js = "assets/js/erpnext-web.min.js" |
Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 15 | web_include_css = "assets/erpnext/css/website.css" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 16 | |
| 17 | after_install = "erpnext.setup.install.after_install" |
| 18 | |
| 19 | boot_session = "erpnext.startup.boot.boot_session" |
| 20 | notification_config = "erpnext.startup.notifications.get_notification_config" |
| 21 | |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 22 | on_session_creation = "erpnext.shopping_cart.utils.set_cart_count" |
| 23 | on_logout = "erpnext.shopping_cart.utils.clear_cart_count" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 24 | |
| 25 | # website |
| 26 | update_website_context = "erpnext.shopping_cart.utils.update_website_context" |
| 27 | my_account_context = "erpnext.shopping_cart.utils.update_my_account_context" |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 28 | |
Rushabh Mehta | 4c46687 | 2015-04-02 22:00:34 +0530 | [diff] [blame] | 29 | email_append_to = ["Job Applicant", "Opportunity", "Issue"] |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 30 | |
Rushabh Mehta | 621d6ea | 2015-07-08 12:39:27 +0530 | [diff] [blame] | 31 | calendars = ["Task", "Production Order", "Time Log", "Leave Application"] |
| 32 | |
| 33 | website_generators = ["Item Group", "Item", "Sales Partner"] |
| 34 | |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 35 | website_context = { |
Rushabh Mehta | 5674c4f | 2015-04-16 15:09:42 +0530 | [diff] [blame] | 36 | "favicon": "/assets/erpnext/images/favicon.png", |
| 37 | "splash_image": "/assets/erpnext/images/splash.png" |
Rushabh Mehta | 2e7c36e | 2015-04-16 12:41:42 +0530 | [diff] [blame] | 38 | } |
| 39 | |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 40 | website_route_rules = [ |
| 41 | {"from_route": "/orders", "to_route": "Sales Order"}, |
Anand Doshi | e440914 | 2015-05-26 17:37:05 -0400 | [diff] [blame] | 42 | {"from_route": "/orders/<path:name>", "to_route": "print", "defaults": {"doctype": "Sales Order"}}, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 43 | {"from_route": "/invoices", "to_route": "Sales Invoice"}, |
Anand Doshi | e440914 | 2015-05-26 17:37:05 -0400 | [diff] [blame] | 44 | {"from_route": "/invoices/<path:name>", "to_route": "print", "defaults": {"doctype": "Sales Invoice"}}, |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 45 | {"from_route": "/shipments", "to_route": "Delivery Note"}, |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 46 | {"from_route": "/shipments/<path:name>", "to_route": "print", "defaults": {"doctype": "Delivery Note"}} |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 47 | ] |
| 48 | |
| 49 | has_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 Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 52 | "Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission", |
| 53 | "Issue": "erpnext.support.doctype.issue.issue.has_website_permission" |
Anand Doshi | f9fc04c | 2015-02-23 22:14:12 +0530 | [diff] [blame] | 54 | } |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 55 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 56 | dump_report_map = "erpnext.startup.report_data_map.data_map" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 57 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 58 | before_tests = "erpnext.setup.utils.before_tests" |
| 59 | |
Rushabh Mehta | 308e6ea | 2015-03-24 17:34:58 +0530 | [diff] [blame] | 60 | standard_queries = { |
| 61 | "Customer": "erpnext.selling.doctype.customer.customer.get_customer_list" |
| 62 | } |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 63 | |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 64 | doc_events = { |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 65 | "Stock Entry": { |
Nabin Hait | 4acd431 | 2014-11-04 15:32:31 +0530 | [diff] [blame] | 66 | "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 Doshi | 648062d | 2014-05-05 16:46:14 +0530 | [diff] [blame] | 68 | }, |
| 69 | "User": { |
Anand Doshi | 4985691 | 2014-05-28 18:49:13 +0530 | [diff] [blame] | 70 | "validate": "erpnext.hr.doctype.employee.employee.validate_employee_role", |
Anand Doshi | a8ce570 | 2014-05-27 13:46:42 +0530 | [diff] [blame] | 71 | "on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions" |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 72 | }, |
Rushabh Mehta | bcdea3e | 2015-05-06 18:45:47 +0530 | [diff] [blame] | 73 | "Sales Taxes and Charges Template": { |
Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 74 | "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 Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | scheduler_events = { |
Nabin Hait | 7580723 | 2015-07-02 14:41:27 +0530 | [diff] [blame] | 82 | "hourly": [ |
| 83 | "erpnext.controllers.recurring_document.create_recurring_documents" |
| 84 | ], |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 85 | "daily": [ |
Rushabh Mehta | f850987 | 2014-10-08 12:03:19 +0530 | [diff] [blame] | 86 | "erpnext.stock.reorder_item.reorder_item", |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 87 | "erpnext.setup.doctype.email_digest.email_digest.send", |
Nabin Hait | 606af96 | 2014-12-15 11:57:03 +0530 | [diff] [blame] | 88 | "erpnext.support.doctype.issue.issue.auto_close_tickets", |
Rushabh Mehta | 5bceebc | 2015-01-23 15:22:13 +0530 | [diff] [blame] | 89 | "erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year", |
| 90 | "erpnext.hr.doctype.employee.employee.send_birthday_reminders" |
Rushabh Mehta | 4ceb20e | 2014-05-02 12:14:03 +0530 | [diff] [blame] | 91 | ], |
| 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 Doshi | 7f41ff2 | 2014-06-26 12:02:55 +0530 | [diff] [blame] | 99 | |
Rushabh Mehta | f29a618 | 2015-05-25 10:50:48 +0530 | [diff] [blame] | 100 | default_mail_footer = """<div style="padding: 15px; text-align: center;"> |
Nabin Hait | b3a142f | 2015-05-26 12:13:30 +0530 | [diff] [blame] | 101 | <a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;"> |
| 102 | Sent via ERPNext |
Anand Doshi | adcf857 | 2015-03-27 17:42:03 +0530 | [diff] [blame] | 103 | </a> |
| 104 | </div>""" |
Anand Doshi | c82331b | 2015-02-12 18:58:28 +0530 | [diff] [blame] | 105 | |
| 106 | get_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 | } |