2
0
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:
Oliver Walters
2019-06-02 12:45:44 +10:00
parent 5177b7f836
commit 802ff35cf3
5 changed files with 30 additions and 124 deletions

View File

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