[breadcrumbs] refactor

This commit is contained in:
Rushabh Mehta
2015-03-09 15:47:15 +05:30
parent ecd2e0f386
commit f5f0d5a83a
16 changed files with 40 additions and 26 deletions

View File

@@ -13,9 +13,22 @@ $(document).bind('toolbar_setup', function() {
});
// doctypes created via tree
frappe.create_routes["Customer Group"] = "Sales Browser/Customer Group";
frappe.create_routes["Territory"] = "Sales Browser/Territory";
frappe.create_routes["Item Group"] = "Sales Browser/Item Group";
frappe.create_routes["Sales Person"] = "Sales Browser/Sales Person";
frappe.create_routes["Account"] = "Accounts Browser/Account";
frappe.create_routes["Cost Center"] = "Accounts Browser/Cost Center";
$.extend(frappe.create_routes, {
"Customer Group": "Sales Browser/Customer Group",
"Territory": "Sales Browser/Territory",
"Item Group": "Sales Browser/Item Group",
"Sales Person": "Sales Browser/Sales Person",
"Account": "Accounts Browser/Account",
"Cost Center": "Accounts Browser/Cost Center"
});
// preferred modules for breadcrumbs
$.extend(frappe.breadcrumbs.preferred, {
"Item Group": "Stock",
"Customer Group": "Selling",
"Supplier Type": "Buying",
"Territory": "Selling",
"Sales Person": "Selling",
"Sales Partner": "Selling",
"Brand": "Selling"
});