From 42cd2b3ef1376bf361e36283fcd2aca85bef5747 Mon Sep 17 00:00:00 2001 From: Antoine Maas Date: Wed, 30 Apr 2025 14:07:34 +0200 Subject: [PATCH] feat: Assets doctypes restricted to Assets domaib --- erpnext/assets/doctype/asset/asset.json | 3 ++- erpnext/assets/doctype/asset_activity/asset_activity.json | 4 +++- .../doctype/asset_capitalization/asset_capitalization.json | 4 +++- .../asset_capitalization_asset_item.json | 4 +++- .../asset_capitalization_service_item.json | 4 +++- .../asset_capitalization_stock_item.json | 3 ++- erpnext/assets/doctype/asset_category/asset_category.json | 4 +++- .../asset_category_account/asset_category_account.json | 4 +++- .../asset_depreciation_schedule.json | 4 +++- .../doctype/asset_finance_book/asset_finance_book.json | 4 +++- .../assets/doctype/asset_maintenance/asset_maintenance.json | 4 +++- .../asset_maintenance_log/asset_maintenance_log.json | 4 +++- .../asset_maintenance_task/asset_maintenance_task.json | 4 +++- .../asset_maintenance_team/asset_maintenance_team.json | 4 +++- erpnext/assets/doctype/asset_movement/asset_movement.json | 4 +++- .../doctype/asset_movement_item/asset_movement_item.json | 4 +++- erpnext/assets/doctype/asset_repair/asset_repair.json | 4 +++- .../asset_repair_consumed_item.json | 4 +++- .../asset_repair_purchase_invoice.json | 4 +++- .../asset_shift_allocation/asset_shift_allocation.json | 4 +++- .../doctype/asset_shift_factor/asset_shift_factor.json | 4 +++- .../asset_value_adjustment/asset_value_adjustment.json | 6 ++++-- .../depreciation_schedule/depreciation_schedule.json | 4 +++- erpnext/assets/doctype/linked_location/linked_location.json | 4 +++- erpnext/assets/doctype/location/location.json | 4 +++- .../maintenance_team_member/maintenance_team_member.json | 4 +++- 26 files changed, 77 insertions(+), 27 deletions(-) diff --git a/erpnext/assets/doctype/asset/asset.json b/erpnext/assets/doctype/asset/asset.json index b18f122721..f1ddeae1d5 100644 --- a/erpnext/assets/doctype/asset/asset.json +++ b/erpnext/assets/doctype/asset/asset.json @@ -591,7 +591,7 @@ "link_fieldname": "target_asset" } ], - "modified": "2025-04-24 15:31:47.373274", + "modified": "2025-04-30 14:06:44.534949", "modified_by": "Administrator", "module": "Assets", "name": "Asset", @@ -629,6 +629,7 @@ "write": 1 } ], + "restrict_to_domain": "Assets", "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "modified", diff --git a/erpnext/assets/doctype/asset_activity/asset_activity.json b/erpnext/assets/doctype/asset_activity/asset_activity.json index 96110611d0..93efe4135e 100644 --- a/erpnext/assets/doctype/asset_activity/asset_activity.json +++ b/erpnext/assets/doctype/asset_activity/asset_activity.json @@ -75,7 +75,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-27 13:06:32.933603", + "modified": "2025-04-30 14:06:44.190123", "modified_by": "Administrator", "module": "Assets", "name": "Asset Activity", @@ -106,6 +106,8 @@ "share": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_capitalization/asset_capitalization.json b/erpnext/assets/doctype/asset_capitalization/asset_capitalization.json index 484e65d9f5..298ff37bb2 100644 --- a/erpnext/assets/doctype/asset_capitalization/asset_capitalization.json +++ b/erpnext/assets/doctype/asset_capitalization/asset_capitalization.json @@ -317,7 +317,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2025-01-08 13:14:33.008458", + "modified": "2025-04-30 14:06:45.393743", "modified_by": "Administrator", "module": "Assets", "name": "Asset Capitalization", @@ -355,6 +355,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_capitalization_asset_item/asset_capitalization_asset_item.json b/erpnext/assets/doctype/asset_capitalization_asset_item/asset_capitalization_asset_item.json index 9a6b02e544..cfb444c98a 100644 --- a/erpnext/assets/doctype/asset_capitalization_asset_item/asset_capitalization_asset_item.json +++ b/erpnext/assets/doctype/asset_capitalization_asset_item/asset_capitalization_asset_item.json @@ -116,12 +116,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-03-27 13:06:33.350191", + "modified": "2025-04-30 14:06:45.049484", "modified_by": "Administrator", "module": "Assets", "name": "Asset Capitalization Asset Item", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_capitalization_service_item/asset_capitalization_service_item.json b/erpnext/assets/doctype/asset_capitalization_service_item/asset_capitalization_service_item.json index 6d74e873e5..e20495a638 100644 --- a/erpnext/assets/doctype/asset_capitalization_service_item/asset_capitalization_service_item.json +++ b/erpnext/assets/doctype/asset_capitalization_service_item/asset_capitalization_service_item.json @@ -110,12 +110,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-03-27 13:06:33.503815", + "modified": "2025-04-30 14:06:44.891383", "modified_by": "Administrator", "module": "Assets", "name": "Asset Capitalization Service Item", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_capitalization_stock_item/asset_capitalization_stock_item.json b/erpnext/assets/doctype/asset_capitalization_stock_item/asset_capitalization_stock_item.json index c96681411f..b43b1efd02 100644 --- a/erpnext/assets/doctype/asset_capitalization_stock_item/asset_capitalization_stock_item.json +++ b/erpnext/assets/doctype/asset_capitalization_stock_item/asset_capitalization_stock_item.json @@ -185,12 +185,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-03-05 12:46:01.074742", + "modified": "2025-04-30 14:06:45.214853", "modified_by": "Administrator", "module": "Assets", "name": "Asset Capitalization Stock Item", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", diff --git a/erpnext/assets/doctype/asset_category/asset_category.json b/erpnext/assets/doctype/asset_category/asset_category.json index e58e9c0676..84530b4a90 100644 --- a/erpnext/assets/doctype/asset_category/asset_category.json +++ b/erpnext/assets/doctype/asset_category/asset_category.json @@ -66,7 +66,7 @@ } ], "links": [], - "modified": "2024-03-27 13:06:33.840414", + "modified": "2025-04-30 14:06:48.046154", "modified_by": "Administrator", "module": "Assets", "name": "Asset Category", @@ -111,6 +111,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "DESC", diff --git a/erpnext/assets/doctype/asset_category_account/asset_category_account.json b/erpnext/assets/doctype/asset_category_account/asset_category_account.json index 8fa7488458..a183a46e98 100644 --- a/erpnext/assets/doctype/asset_category_account/asset_category_account.json +++ b/erpnext/assets/doctype/asset_category_account/asset_category_account.json @@ -58,12 +58,14 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:06:34.012854", + "modified": "2025-04-30 14:06:47.773645", "modified_by": "Administrator", "module": "Assets", "name": "Asset Category Account", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_depreciation_schedule/asset_depreciation_schedule.json b/erpnext/assets/doctype/asset_depreciation_schedule/asset_depreciation_schedule.json index 3a540d82d0..dd36c7fc74 100644 --- a/erpnext/assets/doctype/asset_depreciation_schedule/asset_depreciation_schedule.json +++ b/erpnext/assets/doctype/asset_depreciation_schedule/asset_depreciation_schedule.json @@ -207,7 +207,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-03-27 13:06:34.135004", + "modified": "2025-04-30 14:06:44.320811", "modified_by": "Administrator", "module": "Assets", "name": "Asset Depreciation Schedule", @@ -244,6 +244,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_finance_book/asset_finance_book.json b/erpnext/assets/doctype/asset_finance_book/asset_finance_book.json index 67332809fe..c3469fc730 100644 --- a/erpnext/assets/doctype/asset_finance_book/asset_finance_book.json +++ b/erpnext/assets/doctype/asset_finance_book/asset_finance_book.json @@ -129,13 +129,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-12-13 12:11:03.743209", + "modified": "2025-04-30 14:06:46.139175", "modified_by": "Administrator", "module": "Assets", "name": "Asset Finance Book", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_maintenance/asset_maintenance.json b/erpnext/assets/doctype/asset_maintenance/asset_maintenance.json index 5287f643bd..3484117f9e 100644 --- a/erpnext/assets/doctype/asset_maintenance/asset_maintenance.json +++ b/erpnext/assets/doctype/asset_maintenance/asset_maintenance.json @@ -103,7 +103,7 @@ } ], "links": [], - "modified": "2024-03-27 13:06:34.491299", + "modified": "2025-04-30 14:06:47.350245", "modified_by": "Administrator", "module": "Assets", "name": "Asset Maintenance", @@ -134,6 +134,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_maintenance_log/asset_maintenance_log.json b/erpnext/assets/doctype/asset_maintenance_log/asset_maintenance_log.json index 825bba41f6..72bfd41362 100644 --- a/erpnext/assets/doctype/asset_maintenance_log/asset_maintenance_log.json +++ b/erpnext/assets/doctype/asset_maintenance_log/asset_maintenance_log.json @@ -180,7 +180,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-09-24 15:12:37.497853", + "modified": "2025-04-30 14:06:46.625901", "modified_by": "Administrator", "module": "Assets", "name": "Asset Maintenance Log", @@ -203,6 +203,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.json b/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.json index f8f9d4db29..b450ac6021 100644 --- a/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.json +++ b/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.json @@ -144,13 +144,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:06:34.835687", + "modified": "2025-04-30 14:06:47.157279", "modified_by": "Administrator", "module": "Assets", "name": "Asset Maintenance Task", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_maintenance_team/asset_maintenance_team.json b/erpnext/assets/doctype/asset_maintenance_team/asset_maintenance_team.json index e2bfdc20dd..005fb60acf 100644 --- a/erpnext/assets/doctype/asset_maintenance_team/asset_maintenance_team.json +++ b/erpnext/assets/doctype/asset_maintenance_team/asset_maintenance_team.json @@ -61,7 +61,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-27 13:06:34.976117", + "modified": "2025-04-30 14:06:47.026085", "modified_by": "Administrator", "module": "Assets", "name": "Asset Maintenance Team", @@ -81,6 +81,8 @@ } ], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_movement/asset_movement.json b/erpnext/assets/doctype/asset_movement/asset_movement.json index 6e0dee6c5d..3bab35391e 100644 --- a/erpnext/assets/doctype/asset_movement/asset_movement.json +++ b/erpnext/assets/doctype/asset_movement/asset_movement.json @@ -96,7 +96,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-03-27 13:06:35.116228", + "modified": "2025-04-30 14:06:47.620984", "modified_by": "Administrator", "module": "Assets", "name": "Asset Movement", @@ -149,6 +149,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_movement_item/asset_movement_item.json b/erpnext/assets/doctype/asset_movement_item/asset_movement_item.json index 084b736f8a..77e7282d0d 100644 --- a/erpnext/assets/doctype/asset_movement_item/asset_movement_item.json +++ b/erpnext/assets/doctype/asset_movement_item/asset_movement_item.json @@ -75,13 +75,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:06:35.272015", + "modified": "2025-04-30 14:06:45.809544", "modified_by": "Administrator", "module": "Assets", "name": "Asset Movement Item", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.json b/erpnext/assets/doctype/asset_repair/asset_repair.json index c1f12a197c..df835b4684 100644 --- a/erpnext/assets/doctype/asset_repair/asset_repair.json +++ b/erpnext/assets/doctype/asset_repair/asset_repair.json @@ -253,7 +253,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-09-30 13:02:06.931188", + "modified": "2025-04-30 14:06:46.804838", "modified_by": "Administrator", "module": "Assets", "name": "Asset Repair", @@ -291,6 +291,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_repair_consumed_item/asset_repair_consumed_item.json b/erpnext/assets/doctype/asset_repair_consumed_item/asset_repair_consumed_item.json index ba4cf7fd5c..51d039d5f3 100644 --- a/erpnext/assets/doctype/asset_repair_consumed_item/asset_repair_consumed_item.json +++ b/erpnext/assets/doctype/asset_repair_consumed_item/asset_repair_consumed_item.json @@ -66,12 +66,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-06-13 12:01:47.147333", + "modified": "2025-04-30 14:06:45.643424", "modified_by": "Administrator", "module": "Assets", "name": "Asset Repair Consumed Item", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/asset_repair_purchase_invoice/asset_repair_purchase_invoice.json b/erpnext/assets/doctype/asset_repair_purchase_invoice/asset_repair_purchase_invoice.json index 22a56af073..87983ded9f 100644 --- a/erpnext/assets/doctype/asset_repair_purchase_invoice/asset_repair_purchase_invoice.json +++ b/erpnext/assets/doctype/asset_repair_purchase_invoice/asset_repair_purchase_invoice.json @@ -38,12 +38,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-09-30 13:02:43.040762", + "modified": "2025-04-30 14:06:43.589621", "modified_by": "Administrator", "module": "Assets", "name": "Asset Repair Purchase Invoice", "owner": "Administrator", "permissions": [], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.json b/erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.json index 925f3b4b63..8dac470abd 100644 --- a/erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.json +++ b/erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.json @@ -70,7 +70,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-03-27 13:06:35.732191", + "modified": "2025-04-30 14:06:44.042172", "modified_by": "Administrator", "module": "Assets", "name": "Asset Shift Allocation", @@ -105,6 +105,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_shift_factor/asset_shift_factor.json b/erpnext/assets/doctype/asset_shift_factor/asset_shift_factor.json index 98757fa66b..b5638526fc 100644 --- a/erpnext/assets/doctype/asset_shift_factor/asset_shift_factor.json +++ b/erpnext/assets/doctype/asset_shift_factor/asset_shift_factor.json @@ -36,7 +36,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-27 13:06:35.869900", + "modified": "2025-04-30 14:06:43.862642", "modified_by": "Administrator", "module": "Assets", "name": "Asset Shift Factor", @@ -68,6 +68,8 @@ "write": 1 } ], + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.json b/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.json index bb464e0ac1..509e0e156c 100644 --- a/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.json +++ b/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.json @@ -54,8 +54,8 @@ "fieldname": "journal_entry", "fieldtype": "Link", "label": "Journal Entry", - "options": "Journal Entry", "no_copy": 1, + "options": "Journal Entry", "read_only": 1 }, { @@ -136,7 +136,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-08-13 16:21:18.639208", + "modified": "2025-04-30 14:06:45.929611", "modified_by": "Administrator", "module": "Assets", "name": "Asset Value Adjustment", @@ -189,6 +189,8 @@ } ], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/depreciation_schedule/depreciation_schedule.json b/erpnext/assets/doctype/depreciation_schedule/depreciation_schedule.json index ad09c36948..88b8ff90b0 100644 --- a/erpnext/assets/doctype/depreciation_schedule/depreciation_schedule.json +++ b/erpnext/assets/doctype/depreciation_schedule/depreciation_schedule.json @@ -68,13 +68,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:06:51.227001", + "modified": "2025-04-30 14:06:47.888605", "modified_by": "Administrator", "module": "Assets", "name": "Depreciation Schedule", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] diff --git a/erpnext/assets/doctype/linked_location/linked_location.json b/erpnext/assets/doctype/linked_location/linked_location.json index 455ef61629..17477e4948 100644 --- a/erpnext/assets/doctype/linked_location/linked_location.json +++ b/erpnext/assets/doctype/linked_location/linked_location.json @@ -19,13 +19,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:10:02.464102", + "modified": "2025-04-30 14:06:46.534321", "modified_by": "Administrator", "module": "Assets", "name": "Linked Location", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [], diff --git a/erpnext/assets/doctype/location/location.json b/erpnext/assets/doctype/location/location.json index bdc0b5efde..cf2fb798fe 100644 --- a/erpnext/assets/doctype/location/location.json +++ b/erpnext/assets/doctype/location/location.json @@ -143,7 +143,7 @@ ], "is_tree": 1, "links": [], - "modified": "2025-01-22 10:47:32.581537", + "modified": "2025-04-30 14:06:46.326687", "modified_by": "Administrator", "module": "Assets", "name": "Location", @@ -223,6 +223,8 @@ } ], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "DESC", diff --git a/erpnext/assets/doctype/maintenance_team_member/maintenance_team_member.json b/erpnext/assets/doctype/maintenance_team_member/maintenance_team_member.json index f13bbbbf17..457006e236 100644 --- a/erpnext/assets/doctype/maintenance_team_member/maintenance_team_member.json +++ b/erpnext/assets/doctype/maintenance_team_member/maintenance_team_member.json @@ -44,13 +44,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:10:04.127108", + "modified": "2025-04-30 14:06:47.494742", "modified_by": "Administrator", "module": "Assets", "name": "Maintenance Team Member", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "restrict_to_domain": "Assets", + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] -- GitLab