159 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			159 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import unicode_literals
 | |
| from frappe import _
 | |
| 
 | |
| app_name = "erpnext"
 | |
| app_title = "ERPNext"
 | |
| app_publisher = "Frappe Technologies Pvt. Ltd."
 | |
| app_description = """## ERPNext
 | |
| 
 | |
| ERPNext is a fully featured ERP system designed for Small and Medium Sized
 | |
| business. ERPNext covers a wide range of features including Accounting, CRM,
 | |
| Inventory management, Selling, Purchasing, Manufacturing, Projects, HR &
 | |
| Payroll, Website, E-Commerce and much more.
 | |
| 
 | |
| ERPNext is based on the Frappe Framework is highly customizable and extendable.
 | |
| You can create Custom Form, Fields, Scripts and can also create your own Apps
 | |
| to extend ERPNext functionality.
 | |
| 
 | |
| ERPNext is Open Source under the GNU General Public Licence v3 and has been
 | |
| listed as one of the Best Open Source Softwares in the world by my online
 | |
| blogs.
 | |
| 
 | |
| ### Links
 | |
| 
 | |
| - Website: [https://erpnext.com](https://erpnext.com)
 | |
| - GitHub: [https://github.com/frappe/erpnext](https://github.com/frappe/erpnext)
 | |
| - Forum: [https://discuss.erpnext.com](https://discuss.erpnext.com)
 | |
| - Frappe Framework: [https://frappe.io](https://frappe.io)
 | |
| 
 | |
| """
 | |
| app_icon = "icon-th"
 | |
| app_color = "#e74c3c"
 | |
| app_version = "6.7.8"
 | |
| app_email = "info@erpnext.com"
 | |
| app_license = "GNU General Public License (v3)"
 | |
| source_link = "https://github.com/frappe/erpnext"
 | |
| 
 | |
| error_report_email = "support@erpnext.com"
 | |
| 
 | |
| app_include_js = "assets/js/erpnext.min.js"
 | |
| app_include_css = "assets/css/erpnext.css"
 | |
| web_include_js = "assets/js/erpnext-web.min.js"
 | |
| web_include_css = "assets/erpnext/css/website.css"
 | |
| 
 | |
| # setup wizard
 | |
| setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
 | |
| setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_complete"
 | |
| 
 | |
| after_install = "erpnext.setup.install.after_install"
 | |
| 
 | |
| boot_session = "erpnext.startup.boot.boot_session"
 | |
| notification_config = "erpnext.startup.notifications.get_notification_config"
 | |
| 
 | |
| on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
 | |
| on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
 | |
| 
 | |
| # website
 | |
| update_website_context = "erpnext.shopping_cart.utils.update_website_context"
 | |
| my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
 | |
| 
 | |
| email_append_to = ["Job Applicant", "Opportunity", "Issue"]
 | |
| 
 | |
| calendars = ["Task", "Production Order", "Time Log", "Leave Application", "Sales Order", "Holiday List"]
 | |
| 
 | |
| website_generators = ["Item Group", "Item", "Sales Partner"]
 | |
| 
 | |
| website_context = {
 | |
| 	"favicon": 	"/assets/erpnext/images/favicon.png",
 | |
| 	"splash_image": "/assets/erpnext/images/splash.png"
 | |
| }
 | |
| 
 | |
| website_route_rules = [
 | |
| 	{"from_route": "/orders", "to_route": "Sales Order"},
 | |
| 	{"from_route": "/orders/<path:name>", "to_route": "order",
 | |
| 		"defaults": {
 | |
| 			"doctype": "Sales Order",
 | |
| 			"parents": [{"title": _("Orders"), "name": "orders"}]
 | |
| 		}
 | |
| 	},
 | |
| 	{"from_route": "/invoices", "to_route": "Sales Invoice"},
 | |
| 	{"from_route": "/invoices/<path:name>", "to_route": "order",
 | |
| 		"defaults": {
 | |
| 			"doctype": "Sales Invoice",
 | |
| 			"parents": [{"title": _("Invoices"), "name": "invoices"}]
 | |
| 		}
 | |
| 	},
 | |
| 	{"from_route": "/shipments", "to_route": "Delivery Note"},
 | |
| 	{"from_route": "/shipments/<path:name>", "to_route": "order",
 | |
| 		"defaults": {
 | |
| 			"doctype": "Delivery Notes",
 | |
| 			"parents": [{"title": _("Shipments"), "name": "shipments"}]
 | |
| 		}
 | |
| 	}
 | |
| ]
 | |
| 
 | |
| 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",
 | |
| 	"Issue": "erpnext.support.doctype.issue.issue.has_website_permission"
 | |
| }
 | |
| 
 | |
| permission_query_conditions = {
 | |
| 	"Contact": "erpnext.utilities.address_and_contact.get_permission_query_conditions_for_contact",
 | |
| 	"Address": "erpnext.utilities.address_and_contact.get_permission_query_conditions_for_address"
 | |
| }
 | |
| 
 | |
| has_permission = {
 | |
| 	"Contact": "erpnext.utilities.address_and_contact.has_permission",
 | |
| 	"Address": "erpnext.utilities.address_and_contact.has_permission"
 | |
| }
 | |
| 
 | |
| dump_report_map = "erpnext.startup.report_data_map.data_map"
 | |
| 
 | |
| before_tests = "erpnext.setup.utils.before_tests"
 | |
| 
 | |
| standard_queries = {
 | |
| 	"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
 | |
| }
 | |
| 
 | |
| doc_events = {
 | |
| 	"Stock Entry": {
 | |
| 		"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"
 | |
| 	},
 | |
| 	"User": {
 | |
| 		"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
 | |
| 		"on_update": "erpnext.hr.doctype.employee.employee.update_user_permissions"
 | |
| 	},
 | |
| 	"Sales Taxes and Charges Template": {
 | |
| 		"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"
 | |
| 	},
 | |
| }
 | |
| 
 | |
| scheduler_events = {
 | |
| 	"hourly": [
 | |
| 		"erpnext.controllers.recurring_document.create_recurring_documents"
 | |
| 	],
 | |
| 	"daily": [
 | |
| 		"erpnext.stock.reorder_item.reorder_item",
 | |
| 		"erpnext.setup.doctype.email_digest.email_digest.send",
 | |
| 		"erpnext.support.doctype.issue.issue.auto_close_tickets",
 | |
| 		"erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
 | |
| 		"erpnext.hr.doctype.employee.employee.send_birthday_reminders"
 | |
| 	]
 | |
| }
 | |
| 
 | |
| default_mail_footer = """<div style="text-align: center;">
 | |
| 	<a href="https://erpnext.com?source=via_email_footer" target="_blank" style="color: #8d99a6;">
 | |
| 		Sent via ERPNext
 | |
| 	</a>
 | |
| </div>"""
 | |
| 
 | |
| get_translated_dict = {
 | |
| 	("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
 | |
| }
 |