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

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

(cherry picked from commit edc1f84250)

# Conflicts:
#	erpnext/stock/doctype/inventory_dimension/inventory_dimension.json

* chore: fix conflicts

---------

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-07-09 14:52:30 +05:30
committed by GitHub
parent b78a97df85
commit 3cc59e4a7a
2 changed files with 4 additions and 12 deletions

View File

@@ -189,7 +189,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-10-05 12:52:18.705431",
"modified": "2024-07-08 08:58:50.228211",
"modified_by": "Administrator",
"module": "Stock",
"name": "Inventory Dimension",
@@ -221,19 +221,11 @@
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Stock User",
"share": 1,
"write": 1
"role": "Stock User"
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
}

View File

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