Merge pull request #1807 from SchrodingersGat/forms-cleanup

Remove unused forms
This commit is contained in:
Oliver 2021-07-12 22:40:20 +10:00 committed by GitHub
commit 6af05b2b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 54 deletions

View File

@ -56,16 +56,6 @@ class PartImageDownloadForm(HelperForm):
] ]
class PartImageForm(HelperForm):
""" Form for uploading a Part image """
class Meta:
model = Part
fields = [
'image',
]
class BomExportForm(forms.Form): class BomExportForm(forms.Form):
""" Simple form to let user set BOM export options, """ Simple form to let user set BOM export options,
before exporting a BOM (bill of materials) file. before exporting a BOM (bill of materials) file.

View File

@ -328,50 +328,6 @@ class UninstallStockForm(forms.ModelForm):
] ]
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.
"""
destination = TreeNodeChoiceField(queryset=StockLocation.objects.all(), label=_('Destination'), required=True, help_text=_('Destination stock location'))
note = forms.CharField(label=_('Notes'), required=True, help_text=_('Add note (required)'))
# transaction = forms.BooleanField(required=False, initial=False, label='Create Transaction', help_text='Create a stock transaction for these parts')
confirm = forms.BooleanField(required=False, initial=False, label=_('Confirm stock adjustment'), help_text=_('Confirm movement of stock items'))
set_loc = forms.BooleanField(required=False, initial=False, label=_('Set Default Location'), help_text=_('Set the destination as the default location for selected parts'))
class Meta:
model = StockItem
fields = [
'destination',
'note',
# 'transaction',
'confirm',
]
class EditStockItemStatusForm(HelperForm):
"""
Simple form for editing StockItem status field
"""
class Meta:
model = StockItem
fields = [
'status',
]
class EditStockItemForm(HelperForm): class EditStockItemForm(HelperForm):
""" Form for editing a StockItem object. """ Form for editing a StockItem object.
Note that not all fields can be edited here (even if they can be specified during creation. Note that not all fields can be edited here (even if they can be specified during creation.