diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py index c0d6e9026f..7e739306b0 100644 --- a/InvenTree/stock/forms.py +++ b/InvenTree/stock/forms.py @@ -245,16 +245,6 @@ class InstallStockForm(HelperForm): required=False, ) - # quantity_to_install = RoundingDecimalFormField( - # max_digits=10, decimal_places=5, - # initial=1, - # label=_('Quantity'), - # help_text=_('Stock quantity to assign'), - # validators=[ - # MinValueValidator(0.001) - # ] - # ) - notes = forms.CharField( required=False, help_text=_('Notes') diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 25f8cefac1..8214ae75b4 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -595,7 +595,6 @@ class StockItemInstall(AjaxUpdateView): if items.count() == 1: item = items.first() initials['stock_item'] = item.pk - # initials['quantity_to_install'] = item.quantity if self.part: initials['part'] = self.part @@ -629,7 +628,6 @@ class StockItemInstall(AjaxUpdateView): data = form.cleaned_data other_stock_item = data['stock_item'] - # quantity = data['quantity_to_install'] # Quantity will always be 1 for serialized item quantity = 1 notes = data['notes']