diff --git a/erpnext/accounts/doctype/account/account.js b/erpnext/accounts/doctype/account/account.js index 078eff55045..44c2ca45fbc 100644 --- a/erpnext/accounts/doctype/account/account.js +++ b/erpnext/accounts/doctype/account/account.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 = "Accounts Browser/Account"; +cur_frm.list_route = "Tree/Account"; cur_frm.cscript.refresh = function(doc, cdt, cdn) { if(doc.__islocal) { diff --git a/erpnext/accounts/doctype/cost_center/cost_center.js b/erpnext/accounts/doctype/cost_center/cost_center.js index 6c456f8f2f0..a5419016e61 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center.js +++ b/erpnext/accounts/doctype/cost_center/cost_center.js @@ -3,7 +3,7 @@ frappe.provide("erpnext.accounts"); -cur_frm.list_route = "Accounts Browser/Cost Center"; +cur_frm.list_route = "Tree/Cost Center"; frappe.ui.form.on('Cost Center', { diff --git a/erpnext/accounts/doctype/payment_tool/payment_tool.py b/erpnext/accounts/doctype/payment_tool/payment_tool.py index 5c5b393963a..7f95ade8776 100644 --- a/erpnext/accounts/doctype/payment_tool/payment_tool.py +++ b/erpnext/accounts/doctype/payment_tool/payment_tool.py @@ -7,7 +7,7 @@ from frappe import _, scrub from frappe.utils import flt from frappe.model.document import Document import json -from erpnext.accounts.utils import get_account_currency +from erpnext.accounts.doctype.account.account import get_account_currency from erpnext.accounts.doctype.journal_entry.journal_entry import get_exchange_rate class PaymentTool(Document): diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py index b9f4def7d23..b6b14803ef6 100644 --- a/erpnext/config/accounts.py +++ b/erpnext/config/accounts.py @@ -193,10 +193,10 @@ def get_data(): "items": [ { "type": "page", - "name": "Accounts Browser", + "name": "Tree", "icon": "icon-sitemap", "label": _("Chart of Cost Centers"), - "route": "Accounts Browser/Cost Center", + "route": "Tree/Cost Center", "description": _("Tree of financial Cost Centers."), "doctype": "Cost Center", }, diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index e3a66a4b11b..ac58e9c4b12 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -6,7 +6,8 @@ import frappe from frappe import _, throw from frappe.utils import today, flt, cint, fmt_money, formatdate, getdate from erpnext.setup.utils import get_company_currency, get_exchange_rate -from erpnext.accounts.utils import get_fiscal_years, validate_fiscal_year, get_account_currency +from erpnext.accounts.utils import get_fiscal_years, validate_fiscal_year +from erpnext.accounts.doctype.account.account import get_account_currency from erpnext.utilities.transaction_base import TransactionBase from erpnext.controllers.recurring_document import convert_to_recurring, validate_recurring_document from erpnext.controllers.sales_and_purchase_return import validate_return diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 6f45ff2ed72..de8ac946c9a 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -24,7 +24,7 @@ frappe.ui.form.on("BOM", { frm.events.update_cost(frm); }); frm.add_custom_button(__("Browse BOM"), function() { - frappe.set_route("bom-browser", frm.doc.name); + frappe.set_route("Tree", "BOM"); }); } diff --git a/erpnext/setup/doctype/sales_person/sales_person.js b/erpnext/setup/doctype/sales_person/sales_person.js index 8bae546a1c0..13683924890 100644 --- a/erpnext/setup/doctype/sales_person/sales_person.js +++ b/erpnext/setup/doctype/sales_person/sales_person.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/Sales Person"; +cur_frm.list_route = "Tree/Sales Person"; cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.cscript.set_root_readonly(doc); diff --git a/erpnext/setup/doctype/territory/territory.js b/erpnext/setup/doctype/territory/territory.js index cde04b33aa5..bf4e29b1054 100644 --- a/erpnext/setup/doctype/territory/territory.js +++ b/erpnext/setup/doctype/territory/territory.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/Territory"; +cur_frm.list_route = "Tree/Territory"; cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.cscript.set_root_readonly(doc);