Merge pull request #5652 from saurabh6790/V7_fixes_1
[fix] link fixes for tree structures #5651
diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py
index 4bb65e8..66b59a5 100644
--- a/erpnext/config/accounts.py
+++ b/erpnext/config/accounts.py
@@ -55,13 +55,12 @@
"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 @@
"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 b423ee9..3c947cb 100644
--- a/erpnext/config/buying.py
+++ b/erpnext/config/buying.py
@@ -96,13 +96,12 @@
"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 178ee95..e25493c 100644
--- a/erpnext/config/crm.py
+++ b/erpnext/config/crm.py
@@ -85,31 +85,28 @@
"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 fbc9fb1..51c5ef9 100644
--- a/erpnext/config/manufacturing.py
+++ b/erpnext/config/manufacturing.py
@@ -39,12 +39,12 @@
"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 1a725e2..45ec1f7 100644
--- a/erpnext/config/selling.py
+++ b/erpnext/config/selling.py
@@ -28,13 +28,12 @@
"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 @@
"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 @@
"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 @@
"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 320d906..5b78ca3 100644
--- a/erpnext/config/stock.py
+++ b/erpnext/config/stock.py
@@ -77,13 +77,12 @@
"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",