From 1f43e8e037c72790665356b1c27981115579fde8 Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Wed, 20 May 2026 14:23:47 +0000 Subject: [PATCH] feat(master-data): make Main type of activity read-only This doctype is now populated exclusively from master_data JSON via the hash-diff sync, so block create/write/delete in the UI and API by dropping those permissions. The sync writes at the DB level so it is unaffected. Also marks option_name read_only and drops allow_rename. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../main_type_of_activity/main_type_of_activity.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/taxes_az/taxes_az/doctype/main_type_of_activity/main_type_of_activity.json b/taxes_az/taxes_az/doctype/main_type_of_activity/main_type_of_activity.json index 2021446..0dde1f1 100644 --- a/taxes_az/taxes_az/doctype/main_type_of_activity/main_type_of_activity.json +++ b/taxes_az/taxes_az/doctype/main_type_of_activity/main_type_of_activity.json @@ -1,6 +1,5 @@ { "actions": [], - "allow_rename": 1, "creation": "2025-01-09 14:43:12.245054", "doctype": "DocType", "engine": "InnoDB", @@ -11,7 +10,8 @@ { "fieldname": "option_name", "fieldtype": "Text", - "label": "Option Name" + "label": "Option Name", + "read_only": 1 } ], "index_web_pages_for_search": 1, @@ -23,16 +23,13 @@ "owner": "Administrator", "permissions": [ { - "create": 1, - "delete": 1, "email": 1, "export": 1, "print": 1, "read": 1, "report": 1, "role": "System Manager", - "share": 1, - "write": 1 + "share": 1 } ], "search_fields": "option_name",