fix(Inventory Dimension): reduce perms for Stock User (#42226)

This commit is contained in:
Raffael Meyer
2024-07-09 08:43:42 +02:00
committed by GitHub
parent 5f53ad3117
commit edc1f84250
2 changed files with 3 additions and 11 deletions

View File

@@ -189,7 +189,7 @@
], ],
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2024-03-27 13:09:52.561725", "modified": "2024-07-08 08:58:50.228211",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Inventory Dimension", "name": "Inventory Dimension",
@@ -221,16 +221,8 @@
"write": 1 "write": 1
}, },
{ {
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1, "read": 1,
"report": 1, "role": "Stock User"
"role": "Stock User",
"share": 1,
"write": 1
} }
], ],
"sort_field": "creation", "sort_field": "creation",

View File

@@ -33,7 +33,7 @@ class InventoryDimension(Document):
dimension_name: DF.Data dimension_name: DF.Data
disabled: DF.Check disabled: DF.Check
document_type: DF.Link | None document_type: DF.Link | None
fetch_from_parent: DF.Literal fetch_from_parent: DF.Literal[None]
istable: DF.Check istable: DF.Check
mandatory_depends_on: DF.SmallText | None mandatory_depends_on: DF.SmallText | None
reference_document: DF.Link reference_document: DF.Link