2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-15 08:48:11 +00:00

Form / view / etc for performing StockItem conversion

This commit is contained in:
Oliver Walters
2020-05-25 14:16:38 +10:00
parent 009adaf528
commit fdf57891fc
5 changed files with 69 additions and 0 deletions

View File

@@ -63,6 +63,18 @@ class EditStockLocationForm(HelperForm):
]
class ConvertStockItemForm(HelperForm):
"""
Form for converting a StockItem to a variant of its current part.
"""
class Meta:
model = StockItem
fields = [
'part'
]
class CreateStockItemForm(HelperForm):
""" Form for creating a new StockItem """