2015-03-03 14:55:30 +05:30
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-08-05 14:59:54 +05:30
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 15:47:51 +05:30
|
|
|
frappe.provide('erpnext');
|
2012-01-20 13:47:16 +05:30
|
|
|
|
2012-05-07 18:00:57 +05:30
|
|
|
// add toolbar icon
|
2012-01-20 13:47:16 +05:30
|
|
|
$(document).bind('toolbar_setup', function() {
|
2014-02-14 15:47:51 +05:30
|
|
|
frappe.app.name = "ERPNext";
|
2014-04-15 16:30:55 +05:30
|
|
|
|
2015-07-13 16:56:37 +05:30
|
|
|
frappe.help_feedback_link = '<p><a class="text-muted" \
|
|
|
|
href="https://discuss.erpnext.com">Feedback</a></p>'
|
|
|
|
|
|
|
|
|
2019-01-21 19:35:46 +05:30
|
|
|
$('[data-link="docs"]').attr("href", "https://erpnext.com/docs")
|
2016-05-02 18:37:47 +05:30
|
|
|
$('[data-link="issues"]').attr("href", "https://github.com/frappe/erpnext/issues")
|
2016-08-22 18:47:35 +05:30
|
|
|
|
|
|
|
|
|
|
|
// default documentation goes to erpnext
|
2016-08-24 12:44:32 +05:30
|
|
|
// $('[data-link-type="documentation"]').attr('data-path', '/erpnext/manual/index');
|
2016-08-22 18:47:35 +05:30
|
|
|
|
|
|
|
// additional help links for erpnext
|
|
|
|
var $help_menu = $('.dropdown-help ul .documentation-links');
|
2019-01-25 12:56:27 +05:30
|
|
|
$('<li><a data-link-type="forum" href="https://erpnext.com/docs/user/manual" \
|
2019-01-21 19:35:46 +05:30
|
|
|
target="_blank">'+__('Documentation')+'</a></li>').insertBefore($help_menu);
|
2016-08-22 18:47:35 +05:30
|
|
|
$('<li><a data-link-type="forum" href="https://discuss.erpnext.com" \
|
|
|
|
target="_blank">'+__('User Forum')+'</a></li>').insertBefore($help_menu);
|
|
|
|
$('<li><a href="https://github.com/frappe/erpnext/issues" \
|
|
|
|
target="_blank">'+__('Report an Issue')+'</a></li>').insertBefore($help_menu);
|
|
|
|
|
2012-04-10 11:35:19 +05:30
|
|
|
});
|
2015-01-01 15:59:34 +05:30
|
|
|
|
2015-03-09 15:47:15 +05:30
|
|
|
// preferred modules for breadcrumbs
|
|
|
|
$.extend(frappe.breadcrumbs.preferred, {
|
|
|
|
"Item Group": "Stock",
|
|
|
|
"Customer Group": "Selling",
|
2018-04-19 18:37:53 +05:30
|
|
|
"Supplier Group": "Buying",
|
2015-03-09 15:47:15 +05:30
|
|
|
"Territory": "Selling",
|
|
|
|
"Sales Person": "Selling",
|
|
|
|
"Sales Partner": "Selling",
|
2020-01-30 12:12:42 +05:30
|
|
|
"Brand": "Stock"
|
2015-03-09 15:47:15 +05:30
|
|
|
});
|
2019-07-10 18:49:41 +05:30
|
|
|
|
|
|
|
$.extend(frappe.breadcrumbs.module_map, {
|
|
|
|
'ERPNext Integrations': 'Integrations',
|
|
|
|
'Geo': 'Settings',
|
|
|
|
'Portal': 'Website',
|
2019-07-10 19:22:16 +05:30
|
|
|
'Utilities': 'Settings',
|
|
|
|
'Shopping Cart': 'Website',
|
|
|
|
'Contacts': 'CRM'
|
2019-07-10 19:39:40 +05:30
|
|
|
});
|