mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 16:29:57 +00:00
Prevent stock adjustments for serialized stock items
This commit is contained in:
@@ -429,6 +429,9 @@ class StockItemEdit(AjaxUpdateView):
|
||||
query = query.filter(part=item.part.id)
|
||||
form.fields['supplier_part'].queryset = query
|
||||
|
||||
if not item.part.trackable:
|
||||
form.fields.pop('serial')
|
||||
|
||||
return form
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user