brotherton-erpnext/erpnext/hooks.py

110 lines
4.1 KiB
Python
Raw Normal View History

from __future__ import unicode_literals
2014-05-02 06:44:03 +00:00
app_name = "erpnext"
app_title = "ERPNext"
app_publisher = "Frappe Technologies Pvt. Ltd. and Contributors"
2014-05-02 06:44:03 +00:00
app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations"
app_icon = "icon-th"
app_color = "#e74c3c"
2015-03-17 05:52:16 +00:00
app_version = "5.0.0-beta"
2014-05-02 06:44:03 +00:00
2014-07-09 07:29:56 +00:00
error_report_email = "support@erpnext.com"
2014-05-02 06:44:03 +00:00
app_include_js = "assets/js/erpnext.min.js"
app_include_css = "assets/css/erpnext.css"
web_include_js = "assets/js/erpnext-web.min.js"
2015-02-24 12:20:44 +00:00
web_include_css = "assets/erpnext/css/website.css"
2014-05-02 06:44:03 +00:00
after_install = "erpnext.setup.install.after_install"
boot_session = "erpnext.startup.boot.boot_session"
notification_config = "erpnext.startup.notifications.get_notification_config"
2014-10-21 10:46:30 +00:00
on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
2015-02-23 16:44:12 +00:00
# website
update_website_context = "erpnext.shopping_cart.utils.update_website_context"
my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
2015-04-02 16:30:34 +00:00
email_append_to = ["Job Applicant", "Opportunity", "Issue"]
2015-02-23 16:44:12 +00:00
2015-04-16 07:11:42 +00:00
website_context = {
"favicon": "/assets/erpnext/images/favicon.png"
}
2015-02-23 16:44:12 +00:00
website_route_rules = [
{"from_route": "/orders", "to_route": "Sales Order"},
{"from_route": "/orders/<name>", "to_route": "print", "defaults": {"doctype": "Sales Order"}},
{"from_route": "/invoices", "to_route": "Sales Invoice"},
{"from_route": "/invoices/<name>", "to_route": "print", "defaults": {"doctype": "Sales Invoice"}},
{"from_route": "/shipments", "to_route": "Delivery Note"},
{"from_route": "/shipments/<name>", "to_route": "print", "defaults": {"doctype": "Delivery Note"}},
{"from_route": "/issues", "to_route": "Issue"},
{"from_route": "/issues/<name>", "to_route": "print", "defaults": {"doctype": "Issue"}},
{"from_route": "/addresses", "to_route": "Address"},
]
has_website_permission = {
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
"Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
"Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission"
}
2014-10-21 10:46:30 +00:00
2014-05-02 06:44:03 +00:00
dump_report_map = "erpnext.startup.report_data_map.data_map"
before_tests = "erpnext.setup.utils.before_tests"
2014-06-17 08:51:26 +00:00
website_generators = ["Item Group", "Item", "Sales Partner"]
2015-03-24 12:04:58 +00:00
standard_queries = {
"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
}
2014-05-02 06:44:03 +00:00
2014-11-28 06:15:02 +00:00
communication_covert_to = ["Lead", "Issue", "Job Application"]
2014-09-17 11:58:03 +00:00
2014-05-02 06:44:03 +00:00
doc_events = {
"Stock Entry": {
2014-11-04 10:02:31 +00:00
"on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
"on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty"
2014-05-05 11:16:14 +00:00
},
"User": {
2014-05-28 13:19:13 +00:00
"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
2014-05-27 08:16:42 +00:00
"on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
2014-10-21 10:46:30 +00:00
},
"Sales Taxes and Charges Master": {
"on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
},
"Price List": {
"on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
},
2014-05-02 06:44:03 +00:00
}
scheduler_events = {
"daily": [
2014-09-05 05:50:10 +00:00
"erpnext.controllers.recurring_document.create_recurring_documents",
"erpnext.stock.reorder_item.reorder_item",
2014-05-02 06:44:03 +00:00
"erpnext.setup.doctype.email_digest.email_digest.send",
2014-12-15 06:27:03 +00:00
"erpnext.support.doctype.issue.issue.auto_close_tickets",
2015-01-23 09:52:13 +00:00
"erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
"erpnext.hr.doctype.employee.employee.send_birthday_reminders"
2014-05-02 06:44:03 +00:00
],
"daily_long": [
"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_daily"
],
"weekly_long": [
"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_weekly"
]
}
2014-06-26 06:32:55 +00:00
default_mail_footer = """<div style="padding: 7px; margin-top: 7px;">
<a style="color: #8D99A6; font-size: 85%; text-decoration: none;" href="https://erpnext.com" target="_blank">
Sent via ERPNext
</a>
</div>"""
2015-02-12 13:28:28 +00:00
get_translated_dict = {
("page", "setup-wizard"): "frappe.geo.country_info.get_translated_dict",
("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
}
2015-04-16 07:11:42 +00:00