mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 01:08:12 +00:00
Remove some now unused forms / views / etc
This commit is contained in:
@@ -42,20 +42,16 @@ class CreateStockItemForm(HelperForm):
|
||||
]
|
||||
|
||||
|
||||
class MoveStockItemForm(HelperForm):
|
||||
""" Form for moving a StockItem to a new location """
|
||||
|
||||
note = forms.CharField(label='Notes', required=True, help_text='Add note (required)')
|
||||
|
||||
class Meta:
|
||||
model = StockItem
|
||||
|
||||
fields = [
|
||||
'location',
|
||||
'note'
|
||||
]
|
||||
|
||||
class AdjustStockForm(forms.ModelForm):
|
||||
""" Form for performing simple stock adjustments.
|
||||
|
||||
- Add stock
|
||||
- Remove stock
|
||||
- Count stock
|
||||
- Move stock
|
||||
|
||||
This form is used for managing stock adjuments for single or multiple stock items.
|
||||
"""
|
||||
|
||||
def get_location_choices(self):
|
||||
locs = StockLocation.objects.all()
|
||||
@@ -88,16 +84,6 @@ class AdjustStockForm(forms.ModelForm):
|
||||
]
|
||||
|
||||
|
||||
class StocktakeForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = StockItem
|
||||
|
||||
fields = [
|
||||
'quantity',
|
||||
]
|
||||
|
||||
|
||||
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