From 52079179936d456cb98d07d14256faec54aa03ba Mon Sep 17 00:00:00 2001 From: Ejaaz Khan <67804911+iamejaaz@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:18:31 +0530 Subject: [PATCH] feat: set default view as tree-view (#45365) feat: set default view as treeview --- erpnext/accounts/doctype/account/account.json | 3 ++- erpnext/accounts/doctype/cost_center/cost_center.json | 3 ++- erpnext/assets/doctype/location/location.json | 3 ++- erpnext/setup/doctype/customer_group/customer_group.json | 3 ++- erpnext/setup/doctype/item_group/item_group.json | 3 ++- erpnext/setup/doctype/supplier_group/supplier_group.json | 3 ++- erpnext/stock/doctype/warehouse/warehouse.json | 5 +++-- erpnext/stock/doctype/warehouse/warehouse.py | 1 + 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.json b/erpnext/accounts/doctype/account/account.json index 147f6c037db..b84f50f97c3 100644 --- a/erpnext/accounts/doctype/account/account.json +++ b/erpnext/accounts/doctype/account/account.json @@ -3,6 +3,7 @@ "allow_copy": 1, "allow_import": 1, "creation": "2013-01-30 12:49:46", + "default_view": "Tree", "description": "Heads (or groups) against which Accounting Entries are made and balances are maintained.", "doctype": "DocType", "document_type": "Setup", @@ -194,7 +195,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-08-19 15:19:11.095045", + "modified": "2025-01-22 10:40:35.766017", "modified_by": "Administrator", "module": "Accounts", "name": "Account", diff --git a/erpnext/accounts/doctype/cost_center/cost_center.json b/erpnext/accounts/doctype/cost_center/cost_center.json index 3b8e22d5085..8a84e2c4c01 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center.json +++ b/erpnext/accounts/doctype/cost_center/cost_center.json @@ -3,6 +3,7 @@ "allow_copy": 1, "allow_import": 1, "creation": "2013-01-23 19:57:17", + "default_view": "Tree", "description": "Track separate Income and Expense for product verticals or divisions.", "doctype": "DocType", "document_type": "Setup", @@ -125,7 +126,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-04-24 10:55:54.083042", + "modified": "2025-01-22 10:46:42.904001", "modified_by": "Administrator", "module": "Accounts", "name": "Cost Center", diff --git a/erpnext/assets/doctype/location/location.json b/erpnext/assets/doctype/location/location.json index baf9b991972..7efc3e9036e 100644 --- a/erpnext/assets/doctype/location/location.json +++ b/erpnext/assets/doctype/location/location.json @@ -4,6 +4,7 @@ "allow_rename": 1, "autoname": "field:location_name", "creation": "2018-05-07 12:49:22.595974", + "default_view": "Tree", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", @@ -142,7 +143,7 @@ ], "is_tree": 1, "links": [], - "modified": "2024-03-27 13:10:02.572355", + "modified": "2025-01-22 10:47:32.581537", "modified_by": "Administrator", "module": "Assets", "name": "Location", diff --git a/erpnext/setup/doctype/customer_group/customer_group.json b/erpnext/setup/doctype/customer_group/customer_group.json index e1876bbd1ca..a2ef8812476 100644 --- a/erpnext/setup/doctype/customer_group/customer_group.json +++ b/erpnext/setup/doctype/customer_group/customer_group.json @@ -4,6 +4,7 @@ "allow_rename": 1, "autoname": "field:customer_group_name", "creation": "2013-01-10 16:34:23", + "default_view": "Tree", "doctype": "DocType", "document_type": "Setup", "engine": "InnoDB", @@ -139,7 +140,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-08-16 19:21:41.880111", + "modified": "2025-01-22 10:48:10.186637", "modified_by": "Administrator", "module": "Setup", "name": "Customer Group", diff --git a/erpnext/setup/doctype/item_group/item_group.json b/erpnext/setup/doctype/item_group/item_group.json index 34135507b13..a5008af25c7 100644 --- a/erpnext/setup/doctype/item_group/item_group.json +++ b/erpnext/setup/doctype/item_group/item_group.json @@ -4,6 +4,7 @@ "allow_rename": 1, "autoname": "field:item_group_name", "creation": "2013-03-28 10:35:29", + "default_view": "Tree", "description": "An Item Group is a way to classify items based on types.", "doctype": "DocType", "document_type": "Setup", @@ -135,7 +136,7 @@ "is_tree": 1, "links": [], "max_attachments": 3, - "modified": "2024-08-16 19:20:36.401913", + "modified": "2025-01-22 10:46:09.450137", "modified_by": "Administrator", "module": "Setup", "name": "Item Group", diff --git a/erpnext/setup/doctype/supplier_group/supplier_group.json b/erpnext/setup/doctype/supplier_group/supplier_group.json index bc4f40ca2c4..04e8e07f019 100644 --- a/erpnext/setup/doctype/supplier_group/supplier_group.json +++ b/erpnext/setup/doctype/supplier_group/supplier_group.json @@ -4,6 +4,7 @@ "allow_rename": 1, "autoname": "field:supplier_group_name", "creation": "2013-01-10 16:34:24", + "default_view": "Tree", "doctype": "DocType", "document_type": "Setup", "engine": "InnoDB", @@ -107,7 +108,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-08-16 19:22:02.022181", + "modified": "2025-01-22 10:49:27.066443", "modified_by": "Administrator", "module": "Setup", "name": "Supplier Group", diff --git a/erpnext/stock/doctype/warehouse/warehouse.json b/erpnext/stock/doctype/warehouse/warehouse.json index 3e338dd3dfe..3dcb1c22af2 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.json +++ b/erpnext/stock/doctype/warehouse/warehouse.json @@ -2,6 +2,7 @@ "actions": [], "allow_import": 1, "creation": "2023-05-29 13:02:17.121296", + "default_view": "Tree", "description": "A logical Warehouse against which stock entries are made.", "doctype": "DocType", "document_type": "Setup", @@ -263,7 +264,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-08-14 16:08:15.733597", + "modified": "2025-01-22 10:47:00.674163", "modified_by": "Administrator", "module": "Stock", "name": "Warehouse", @@ -321,4 +322,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/erpnext/stock/doctype/warehouse/warehouse.py b/erpnext/stock/doctype/warehouse/warehouse.py index e8d2150dfbf..28c37c39676 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.py +++ b/erpnext/stock/doctype/warehouse/warehouse.py @@ -32,6 +32,7 @@ class Warehouse(NestedSet): disabled: DF.Check email_id: DF.Data | None is_group: DF.Check + is_rejected_warehouse: DF.Check lft: DF.Int mobile_no: DF.Data | None old_parent: DF.Link | None