From 52ec0ed134d3e9fb25aa91df75c164e672cd7adc Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 5 Jul 2016 18:02:38 +0530 Subject: [PATCH] [fix] link fixes for tree structures #5651 --- erpnext/config/accounts.py | 10 ++++------ erpnext/config/buying.py | 5 ++--- erpnext/config/crm.py | 15 ++++++--------- erpnext/config/manufacturing.py | 6 +++--- erpnext/config/selling.py | 20 ++++++++------------ erpnext/config/stock.py | 5 ++--- 6 files changed, 25 insertions(+), 36 deletions(-) diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py index 4bb65e8291..66b59a529a 100644 --- a/erpnext/config/accounts.py +++ b/erpnext/config/accounts.py @@ -55,13 +55,12 @@ def get_data(): "description": _("Accounting journal entries.") }, { - "type": "page", - "name": "Tree", + "type": "doctype", + "name": "Account", "icon": "icon-sitemap", "label": _("Chart of Accounts"), "route": "Tree/Account", "description": _("Tree of financial accounts."), - "doctype": "Account", }, { "type": "report", @@ -197,13 +196,12 @@ def get_data(): "label": _("Budget and Cost Center"), "items": [ { - "type": "page", - "name": "Tree", + "type": "doctype", + "name": "Cost Center", "icon": "icon-sitemap", "label": _("Chart of Cost Centers"), "route": "Tree/Cost Center", "description": _("Tree of financial Cost Centers."), - "doctype": "Cost Center", }, { "type": "doctype", diff --git a/erpnext/config/buying.py b/erpnext/config/buying.py index b423ee925d..3c947cb7ab 100644 --- a/erpnext/config/buying.py +++ b/erpnext/config/buying.py @@ -96,13 +96,12 @@ def get_data(): "description": _("Price List master.") }, { - "type": "page", - "name": "Tree", + "type": "doctype", + "name": "Item Group", "icon": "icon-sitemap", "label": _("Item Group"), "link": "Tree/Item Group", "description": _("Tree of Item Groups."), - "doctype": "Item Group", }, { "type": "doctype", diff --git a/erpnext/config/crm.py b/erpnext/config/crm.py index 178ee959d3..e25493cb01 100644 --- a/erpnext/config/crm.py +++ b/erpnext/config/crm.py @@ -85,31 +85,28 @@ def get_data(): "description": _("Sales campaigns."), }, { - "type": "page", + "type": "doctype", "label": _("Customer Group"), - "name": "Tree", + "name": "Customer Group", "icon": "icon-sitemap", "link": "Tree/Customer Group", "description": _("Manage Customer Group Tree."), - "doctype": "Customer Group", }, { - "type": "page", + "type": "doctype", "label": _("Territory"), - "name": "Tree", + "name": "Territory", "icon": "icon-sitemap", "link": "Tree/Territory", "description": _("Manage Territory Tree."), - "doctype": "Territory", }, { - "type": "page", + "type": "doctype", "label": _("Sales Person"), - "name": "Tree", + "name": "Sales Person", "icon": "icon-sitemap", "link": "Tree/Sales Person", "description": _("Manage Sales Person Tree."), - "doctype": "Sales Person", }, ] }, diff --git a/erpnext/config/manufacturing.py b/erpnext/config/manufacturing.py index fbc9fb1701..51c5ef9a80 100644 --- a/erpnext/config/manufacturing.py +++ b/erpnext/config/manufacturing.py @@ -39,12 +39,12 @@ def get_data(): "label": _("Bill of Materials") }, { - "type": "page", - "name": "bom-browser", + "type": "doctype", + "name": "BOM", "icon": "icon-sitemap", "label": _("BOM Browser"), "description": _("Tree of Bill of Materials"), - "doctype": "BOM" + "link": "Tree/BOM", }, { "type": "doctype", diff --git a/erpnext/config/selling.py b/erpnext/config/selling.py index 1a725e2ae9..45ec1f749c 100644 --- a/erpnext/config/selling.py +++ b/erpnext/config/selling.py @@ -28,13 +28,12 @@ def get_data(): "description": _("Customer database."), }, { - "type": "page", + "type": "doctype", "label": _("Customer Group"), - "name": "Tree", + "name": "Customer Group", "icon": "icon-sitemap", "link": "Tree/Customer Group", "description": _("Manage Customer Group Tree."), - "doctype": "Customer Group", }, { "type": "doctype", @@ -68,13 +67,12 @@ def get_data(): "description": _("Price List master.") }, { - "type": "page", - "name": "Tree", + "type": "doctype", + "name": "Item Group", "icon": "icon-sitemap", "label": _("Item Group"), "link": "Tree/Item Group", "description": _("Tree of Item Groups."), - "doctype": "Item Group", }, { "type": "doctype", @@ -99,13 +97,12 @@ def get_data(): "label": _("Sales Partners and Territory"), "items": [ { - "type": "page", + "type": "doctype", "label": _("Territory"), - "name": "Tree", + "name": "Territory", "icon": "icon-sitemap", "link": "Tree/Territory", "description": _("Manage Territory Tree."), - "doctype": "Territory", }, { "type": "doctype", @@ -113,13 +110,12 @@ def get_data(): "description": _("Manage Sales Partners."), }, { - "type": "page", + "type": "doctype", "label": _("Sales Person"), - "name": "Tree", + "name": "Sales Person", "icon": "icon-sitemap", "link": "Tree/Sales Person", "description": _("Manage Sales Person Tree."), - "doctype": "Sales Person", }, { "type": "report", diff --git a/erpnext/config/stock.py b/erpnext/config/stock.py index 320d906a5b..5b78ca3e94 100644 --- a/erpnext/config/stock.py +++ b/erpnext/config/stock.py @@ -77,13 +77,12 @@ def get_data(): "description": _("Price List master.") }, { - "type": "page", - "name": "Tree", + "type": "doctype", + "name": "Item Group", "icon": "icon-sitemap", "label": _("Item Group"), "link": "Tree/Item Group", "description": _("Tree of Item Groups."), - "doctype": "Item Group", }, { "type": "doctype",