diff --git a/erpnext/accounts/doctype/account/account.js b/erpnext/accounts/doctype/account/account.js index 703397e52a..078eff5504 100644 --- a/erpnext/accounts/doctype/account/account.js +++ b/erpnext/accounts/doctype/account/account.js @@ -48,7 +48,7 @@ cur_frm.cscript.account_type = function(doc, cdt, cdn) { cur_frm.cscript.add_toolbar_buttons = function(doc) { cur_frm.add_custom_button(__('Chart of Accounts'), - function() { frappe.set_route("Accounts Browser", "Account"); }, __("View")) + function() { frappe.set_route("Tree", "Account"); }, __("View")) if (doc.is_group == 1) { cur_frm.add_custom_button(__('Group to Non-Group'), diff --git a/erpnext/accounts/doctype/cost_center/cost_center.js b/erpnext/accounts/doctype/cost_center/cost_center.js index 85a605229a..6c456f8f2f 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center.js +++ b/erpnext/accounts/doctype/cost_center/cost_center.js @@ -34,7 +34,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.set_intro(intro_txt); cur_frm.add_custom_button(__('Chart of Cost Centers'), - function() { frappe.set_route("Accounts Browser", "Cost Center"); }, __("View")) + function() { frappe.set_route("Tree", "Cost Center"); }, __("View")) } cur_frm.cscript.parent_cost_center = function(doc, cdt, cdn) { diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py index e11544abd1..b9f4def7d2 100644 --- a/erpnext/config/accounts.py +++ b/erpnext/config/accounts.py @@ -51,10 +51,10 @@ def get_data(): }, { "type": "page", - "name": "Accounts Browser", + "name": "Tree", "icon": "icon-sitemap", "label": _("Chart of Accounts"), - "route": "Accounts Browser/Account", + "route": "Tree/Account", "description": _("Tree of financial accounts."), "doctype": "Account", }, diff --git a/erpnext/config/buying.py b/erpnext/config/buying.py index 0dc51f6df0..b423ee925d 100644 --- a/erpnext/config/buying.py +++ b/erpnext/config/buying.py @@ -97,10 +97,10 @@ def get_data(): }, { "type": "page", - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", "label": _("Item Group"), - "link": "Sales Browser/Item Group", + "link": "Tree/Item Group", "description": _("Tree of Item Groups."), "doctype": "Item Group", }, diff --git a/erpnext/config/crm.py b/erpnext/config/crm.py index dfefb75ed9..52958e39b7 100644 --- a/erpnext/config/crm.py +++ b/erpnext/config/crm.py @@ -92,27 +92,27 @@ def get_data(): { "type": "page", "label": _("Customer Group"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Customer Group", + "link": "Tree/Customer Group", "description": _("Manage Customer Group Tree."), "doctype": "Customer Group", }, { "type": "page", "label": _("Territory"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Territory", + "link": "Tree/Territory", "description": _("Manage Territory Tree."), "doctype": "Territory", }, { "type": "page", "label": _("Sales Person"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Sales Person", + "link": "Tree/Sales Person", "description": _("Manage Sales Person Tree."), "doctype": "Sales Person", }, diff --git a/erpnext/config/selling.py b/erpnext/config/selling.py index 771a0d7904..1a725e2ae9 100644 --- a/erpnext/config/selling.py +++ b/erpnext/config/selling.py @@ -30,9 +30,9 @@ def get_data(): { "type": "page", "label": _("Customer Group"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Customer Group", + "link": "Tree/Customer Group", "description": _("Manage Customer Group Tree."), "doctype": "Customer Group", }, @@ -69,10 +69,10 @@ def get_data(): }, { "type": "page", - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", "label": _("Item Group"), - "link": "Sales Browser/Item Group", + "link": "Tree/Item Group", "description": _("Tree of Item Groups."), "doctype": "Item Group", }, @@ -101,9 +101,9 @@ def get_data(): { "type": "page", "label": _("Territory"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Territory", + "link": "Tree/Territory", "description": _("Manage Territory Tree."), "doctype": "Territory", }, @@ -115,9 +115,9 @@ def get_data(): { "type": "page", "label": _("Sales Person"), - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", - "link": "Sales Browser/Sales Person", + "link": "Tree/Sales Person", "description": _("Manage Sales Person Tree."), "doctype": "Sales Person", }, diff --git a/erpnext/config/stock.py b/erpnext/config/stock.py index cf3a7baeb6..320d906a5b 100644 --- a/erpnext/config/stock.py +++ b/erpnext/config/stock.py @@ -78,10 +78,10 @@ def get_data(): }, { "type": "page", - "name": "Sales Browser", + "name": "Tree", "icon": "icon-sitemap", "label": _("Item Group"), - "link": "Sales Browser/Item Group", + "link": "Tree/Item Group", "description": _("Tree of Item Groups."), "doctype": "Item Group", }, diff --git a/erpnext/public/js/conf.js b/erpnext/public/js/conf.js index d8133ce4cb..233bd2e496 100644 --- a/erpnext/public/js/conf.js +++ b/erpnext/public/js/conf.js @@ -20,12 +20,12 @@ $(document).bind('toolbar_setup', function() { // doctypes created via tree $.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" + "Customer Group": "Tree/Customer Group", + "Territory": "Tree/Territory", + "Item Group": "Tree/Item Group", + "Sales Person": "Tree/Sales Person", + "Account": "Tree/Account", + "Cost Center": "Tree/Cost Center" }); // preferred modules for breadcrumbs diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js index dfa6c0ac19..2a18286343 100644 --- a/erpnext/setup/doctype/company/company.js +++ b/erpnext/setup/doctype/company/company.js @@ -18,11 +18,11 @@ frappe.ui.form.on("Company", { !frm.doc.__onload.transactions_exist)); frm.add_custom_button(__('Cost Centers'), function() { - frappe.set_route('Accounts Browser', 'Cost Center', {'company': frm.doc.name}) + frappe.set_route('Tree', 'Cost Center', {'company': frm.doc.name}) }) frm.add_custom_button(__('Chart of Accounts'), function() { - frappe.set_route('Accounts Browser', 'Account', {'company': frm.doc.name}) + frappe.set_route('Tree', 'Account', {'company': frm.doc.name}) }) } diff --git a/erpnext/setup/doctype/customer_group/customer_group.js b/erpnext/setup/doctype/customer_group/customer_group.js index 7a5d2fa9dd..3dc5c6c607 100644 --- a/erpnext/setup/doctype/customer_group/customer_group.js +++ b/erpnext/setup/doctype/customer_group/customer_group.js @@ -1,7 +1,7 @@ // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt -cur_frm.list_route = "Sales Browser/Customer Group"; +cur_frm.list_route = "Tree/Customer Group"; cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.cscript.set_root_readonly(doc); diff --git a/erpnext/setup/doctype/item_group/item_group.js b/erpnext/setup/doctype/item_group/item_group.js index d440c26a41..d6adebce97 100644 --- a/erpnext/setup/doctype/item_group/item_group.js +++ b/erpnext/setup/doctype/item_group/item_group.js @@ -3,7 +3,7 @@ frappe.ui.form.on("Item Group", { onload: function(frm) { - frm.list_route = "Sales Browser/Item Group"; + frm.list_route = "Tree/Item Group"; //get query select item group frm.fields_dict['parent_item_group'].get_query = function(doc,cdt,cdn) { @@ -19,7 +19,7 @@ frappe.ui.form.on("Item Group", { refresh: function(frm) { frm.trigger("set_root_readonly"); frm.add_custom_button(__("Item Group Tree"), function() { - frappe.set_route("Sales Browser", "Item Group"); + frappe.set_route("Tree", "Item Group"); }, "icon-sitemap"); }, diff --git a/erpnext/startup/boot.py b/erpnext/startup/boot.py index 7bdcb0aa9c..97ef3299a3 100644 --- a/erpnext/startup/boot.py +++ b/erpnext/startup/boot.py @@ -52,26 +52,26 @@ def update_page_info(bootinfo): bootinfo.page_info.update({ "Chart of Accounts": { "title": "Chart of Accounts", - "route": "Accounts Browser/Account" + "route": "Tree/Account" }, "Chart of Cost Centers": { "title": "Chart of Cost Centers", - "route": "Accounts Browser/Cost Center" + "route": "Tree/Cost Center" }, "Item Group Tree": { "title": "Item Group Tree", - "route": "Sales Browser/Item Group" + "route": "Tree/Item Group" }, "Customer Group Tree": { "title": "Customer Group Tree", - "route": "Sales Browser/Customer Group" + "route": "Tree/Customer Group" }, "Territory Tree": { "title": "Territory Tree", - "route": "Sales Browser/Territory" + "route": "Tree/Territory" }, "Sales Person Tree": { "title": "Sales Person Tree", - "route": "Sales Browser/Sales Person" + "route": "Tree/Sales Person" } })