2
0
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:
Oliver Walters
2019-07-25 11:05:09 +10:00
parent 94c0102742
commit fe7392f152
3 changed files with 45 additions and 2 deletions

View File

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