mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 21:20:56 +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