2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-15 08:48:11 +00:00
- Add StockHistoryCode to custom context
- Add simple form for editing stock item history
- Add tracking entry when stock status is changed
This commit is contained in:
Oliver Walters
2021-05-11 23:38:26 +10:00
parent 84bfffd5a7
commit 03a231bffb
11 changed files with 119 additions and 16 deletions

View File

@@ -393,6 +393,18 @@ class AdjustStockForm(forms.ModelForm):
]
class EditStockItemStatusForm(HelperForm):
"""
Simple form for editing StockItem status field
"""
class Meta:
model = StockItem
fields = [
'status',
]
class EditStockItemForm(HelperForm):
""" Form for editing a StockItem object.
Note that not all fields can be edited here (even if they can be specified during creation.