mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-15 08:48:11 +00:00
Updates
- 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user