2015-02-24 12:24:53 +05:30
|
|
|
from __future__ import unicode_literals
|
2015-09-11 18:49:59 +05:30
|
|
|
from frappe import _
|
2016-06-09 16:29:12 +05:30
|
|
|
from . import __version__ as app_version
|
2015-09-11 18:49:59 +05:30
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
app_name = "erpnext"
|
|
|
|
app_title = "ERPNext"
|
2015-07-22 15:07:25 +05:30
|
|
|
app_publisher = "Frappe Technologies Pvt. Ltd."
|
2015-11-18 16:48:19 +05:30
|
|
|
app_description = """ERP made simple"""
|
2016-12-07 11:08:48 +05:30
|
|
|
app_icon = "fa fa-th"
|
2014-05-02 12:14:03 +05:30
|
|
|
app_color = "#e74c3c"
|
2015-11-05 16:55:10 +05:30
|
|
|
app_email = "info@erpnext.com"
|
|
|
|
app_license = "GNU General Public License (v3)"
|
2015-11-02 10:45:18 +05:30
|
|
|
source_link = "https://github.com/frappe/erpnext"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2017-05-04 12:12:14 +05:30
|
|
|
develop_version = '8.x.x-beta'
|
2017-03-10 09:38:58 +05:30
|
|
|
|
2014-07-09 12:59:56 +05:30
|
|
|
error_report_email = "support@erpnext.com"
|
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
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 17:50:44 +05:30
|
|
|
web_include_css = "assets/erpnext/css/website.css"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2017-03-13 16:32:46 +05:30
|
|
|
doctype_js = {
|
|
|
|
"Communication": "public/js/communication.js",
|
|
|
|
}
|
|
|
|
|
2015-11-09 16:53:11 +05:30
|
|
|
# setup wizard
|
|
|
|
setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
|
|
|
|
setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_complete"
|
|
|
|
|
2015-12-31 11:12:48 +05:30
|
|
|
before_install = "erpnext.setup.install.check_setup_wizard_not_completed"
|
2014-05-02 12:14:03 +05:30
|
|
|
after_install = "erpnext.setup.install.after_install"
|
|
|
|
|
|
|
|
boot_session = "erpnext.startup.boot.boot_session"
|
|
|
|
notification_config = "erpnext.startup.notifications.get_notification_config"
|
2017-02-22 16:15:43 +05:30
|
|
|
get_help_messages = "erpnext.utilities.activation.get_help_messages"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2014-10-21 16:16:30 +05:30
|
|
|
on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
|
|
|
|
on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
|
2015-02-23 22:14:12 +05:30
|
|
|
|
2016-06-30 13:33:49 +05:30
|
|
|
treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', "BOM"]
|
2016-05-02 13:28:46 +05:30
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
# website
|
|
|
|
update_website_context = "erpnext.shopping_cart.utils.update_website_context"
|
|
|
|
my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2015-04-02 22:00:34 +05:30
|
|
|
email_append_to = ["Job Applicant", "Opportunity", "Issue"]
|
2015-02-23 22:14:12 +05:30
|
|
|
|
2016-06-03 14:44:35 +05:30
|
|
|
calendars = ["Task", "Production Order", "Leave Application", "Sales Order", "Holiday List"]
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2016-03-01 11:33:49 +05:30
|
|
|
fixtures = ["Web Form"]
|
|
|
|
|
2017-02-09 08:57:33 +05:30
|
|
|
website_generators = ["Item Group", "Item", "BOM", "Sales Partner", "Job Opening", "Student Admission"]
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2015-04-16 12:41:42 +05:30
|
|
|
website_context = {
|
2015-04-16 15:09:42 +05:30
|
|
|
"favicon": "/assets/erpnext/images/favicon.png",
|
2017-01-10 14:46:45 +05:30
|
|
|
"splash_image": "/assets/erpnext/images/erp-icon.svg"
|
2015-04-16 12:41:42 +05:30
|
|
|
}
|
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
website_route_rules = [
|
|
|
|
{"from_route": "/orders", "to_route": "Sales Order"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/orders/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Sales Order",
|
|
|
|
"parents": [{"title": _("Orders"), "name": "orders"}]
|
|
|
|
}
|
|
|
|
},
|
2015-02-23 22:14:12 +05:30
|
|
|
{"from_route": "/invoices", "to_route": "Sales Invoice"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/invoices/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Sales Invoice",
|
|
|
|
"parents": [{"title": _("Invoices"), "name": "invoices"}]
|
|
|
|
}
|
|
|
|
},
|
2016-09-21 16:49:58 +05:30
|
|
|
{"from_route": "/quotations", "to_route": "Supplier Quotation"},
|
|
|
|
{"from_route": "/quotations/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Supplier Quotation",
|
|
|
|
"parents": [{"title": _("Supplier Quotation"), "name": "quotations"}]
|
|
|
|
}
|
|
|
|
},
|
2015-02-23 22:14:12 +05:30
|
|
|
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/shipments/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
2015-11-26 18:22:03 +05:30
|
|
|
"doctype": "Delivery Note",
|
2015-09-11 18:49:59 +05:30
|
|
|
"parents": [{"title": _("Shipments"), "name": "shipments"}]
|
|
|
|
}
|
2016-02-19 17:27:23 +05:30
|
|
|
},
|
2016-03-03 14:00:35 +05:30
|
|
|
{"from_route": "/rfq", "to_route": "Request for Quotation"},
|
|
|
|
{"from_route": "/rfq/<path:name>", "to_route": "rfq",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Request for Quotation",
|
|
|
|
"parents": [{"title": _("Request for Quotation"), "name": "rfq"}]
|
|
|
|
}
|
|
|
|
},
|
2016-07-04 14:28:09 +05:30
|
|
|
{"from_route": "/addresses", "to_route": "Address"},
|
|
|
|
{"from_route": "/addresses/<path:name>", "to_route": "addresses",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Address",
|
|
|
|
"parents": [{"title": _("Addresses"), "name": "addresses"}]
|
|
|
|
}
|
|
|
|
},
|
2016-02-19 17:27:23 +05:30
|
|
|
{"from_route": "/jobs", "to_route": "Job Opening"},
|
2016-09-15 14:48:13 +05:30
|
|
|
{"from_route": "/admissions", "to_route": "Student Admission"},
|
2017-02-10 18:28:39 +05:30
|
|
|
{"from_route": "/boms", "to_route": "BOM"}
|
2015-02-23 22:14:12 +05:30
|
|
|
]
|
|
|
|
|
2017-03-08 12:33:43 +05:30
|
|
|
standard_portal_menu_items = [
|
2016-04-01 11:53:50 +05:30
|
|
|
{"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
|
2016-09-23 21:51:51 +05:30
|
|
|
{"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"},
|
|
|
|
{"title": _("Supplier Quotation"), "route": "/quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"},
|
|
|
|
{"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"},
|
|
|
|
{"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"},
|
|
|
|
{"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"},
|
|
|
|
{"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"},
|
2016-07-19 14:17:33 +05:30
|
|
|
{"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"},
|
2016-09-23 21:51:51 +05:30
|
|
|
{"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"}
|
|
|
|
]
|
|
|
|
|
|
|
|
default_roles = [
|
2017-01-14 00:25:22 +05:30
|
|
|
{'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'},
|
|
|
|
{'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'},
|
2016-09-23 21:51:51 +05:30
|
|
|
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'}
|
2016-03-30 12:29:48 +05:30
|
|
|
]
|
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
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",
|
2016-09-21 16:49:58 +05:30
|
|
|
"Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2015-06-01 17:15:42 +05:30
|
|
|
"Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2017-01-30 17:04:38 +05:30
|
|
|
"Issue": "erpnext.support.doctype.issue.issue.has_website_permission"
|
2015-02-23 22:14:12 +05:30
|
|
|
}
|
2014-10-21 16:16:30 +05:30
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
dump_report_map = "erpnext.startup.report_data_map.data_map"
|
|
|
|
|
|
|
|
before_tests = "erpnext.setup.utils.before_tests"
|
|
|
|
|
2015-03-24 17:34:58 +05:30
|
|
|
standard_queries = {
|
|
|
|
"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
|
|
|
|
}
|
2014-05-02 12:14:03 +05:30
|
|
|
|
|
|
|
doc_events = {
|
|
|
|
"Stock Entry": {
|
2014-11-04 15:32:31 +05:30
|
|
|
"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 16:46:14 +05:30
|
|
|
},
|
|
|
|
"User": {
|
2017-01-14 00:25:22 +05:30
|
|
|
"after_insert": "frappe.email.doctype.contact.contact.update_contact",
|
2014-05-28 18:49:13 +05:30
|
|
|
"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
|
2017-03-31 23:01:45 +05:30
|
|
|
"on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions",
|
|
|
|
"erpnext.portal.utils.set_default_role"]
|
2014-10-21 16:16:30 +05:30
|
|
|
},
|
2016-04-08 17:20:50 +05:30
|
|
|
("Sales Taxes and Charges Template", 'Price List'): {
|
2014-10-21 16:16:30 +05:30
|
|
|
"on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
|
|
|
|
},
|
2016-04-08 17:20:50 +05:30
|
|
|
|
2016-04-22 18:53:21 +05:30
|
|
|
"Website Settings": {
|
|
|
|
"validate": "erpnext.portal.doctype.products_settings.products_settings.home_page_is_products"
|
2016-07-21 20:26:46 +05:30
|
|
|
},
|
|
|
|
"Payment Entry": {
|
|
|
|
"on_submit": "erpnext.accounts.doctype.payment_request.payment_request.make_status_as_paid"
|
2016-04-22 18:53:21 +05:30
|
|
|
}
|
2014-05-02 12:14:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
scheduler_events = {
|
2015-07-02 14:41:27 +05:30
|
|
|
"hourly": [
|
2016-11-08 18:18:40 +05:30
|
|
|
"erpnext.controllers.recurring_document.create_recurring_documents",
|
|
|
|
'erpnext.hr.doctype.daily_work_summary_settings.daily_work_summary_settings.trigger_emails'
|
2015-07-02 14:41:27 +05:30
|
|
|
],
|
2014-05-02 12:14:03 +05:30
|
|
|
"daily": [
|
2014-10-08 12:03:19 +05:30
|
|
|
"erpnext.stock.reorder_item.reorder_item",
|
2014-05-02 12:14:03 +05:30
|
|
|
"erpnext.setup.doctype.email_digest.email_digest.send",
|
2014-12-15 11:57:03 +05:30
|
|
|
"erpnext.support.doctype.issue.issue.auto_close_tickets",
|
2017-02-16 19:36:59 +05:30
|
|
|
"erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity",
|
2016-11-08 12:39:33 +05:30
|
|
|
"erpnext.controllers.accounts_controller.update_invoice_status",
|
2015-01-23 15:22:13 +05:30
|
|
|
"erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
|
2015-12-10 12:31:36 +05:30
|
|
|
"erpnext.hr.doctype.employee.employee.send_birthday_reminders",
|
2016-03-09 12:40:56 +05:30
|
|
|
"erpnext.projects.doctype.task.task.set_tasks_as_overdue",
|
2016-11-18 12:39:24 +05:30
|
|
|
"erpnext.accounts.doctype.asset.depreciation.post_depreciation_entries",
|
|
|
|
'erpnext.hr.doctype.daily_work_summary_settings.daily_work_summary_settings.send_summary'
|
2014-05-02 12:14:03 +05:30
|
|
|
]
|
|
|
|
}
|
2014-06-26 12:02:55 +05:30
|
|
|
|
2015-09-16 19:20:55 +05:30
|
|
|
default_mail_footer = """<div style="text-align: center;">
|
2015-05-26 12:13:30 +05:30
|
|
|
<a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;">
|
|
|
|
Sent via ERPNext
|
2015-03-27 17:42:03 +05:30
|
|
|
</a>
|
|
|
|
</div>"""
|
2015-02-12 18:58:28 +05:30
|
|
|
|
|
|
|
get_translated_dict = {
|
|
|
|
("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
|
|
|
|
}
|
2016-03-28 13:21:43 +05:30
|
|
|
|
|
|
|
bot_parsers = [
|
|
|
|
'erpnext.utilities.bot.FindItemBot',
|
2016-04-01 11:53:50 +05:30
|
|
|
]
|
2016-06-25 19:51:48 +05:30
|
|
|
|
|
|
|
get_site_info = 'erpnext.utilities.get_site_info'
|
2016-11-08 20:35:50 +05:30
|
|
|
|
2017-03-14 14:46:05 +05:30
|
|
|
payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
|