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) <noreply@anthropic.com>
This commit is contained in:
Ali 2026-05-20 14:23:47 +00:00
parent eb392640cd
commit 1f43e8e037
1 changed files with 3 additions and 6 deletions

View File

@ -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",