diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py index 04701c8eb6..a5c689a605 100644 --- a/InvenTree/stock/forms.py +++ b/InvenTree/stock/forms.py @@ -292,6 +292,7 @@ class UninstallStockForm(forms.ModelForm): 'confirm', ] + class AdjustStockForm(forms.ModelForm): """ Form for performing simple stock adjustments. diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index b1e9f95e7e..df1a628f47 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -625,7 +625,7 @@ class StockItem(MPTTModel): self.addTransactionNote( _('Installed in stock item') + ' ' + str(otherItem.pk), user, - notes=notes + notes=notes ) @transaction.atomic diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 7e62eda936..5041fad9d4 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -765,7 +765,7 @@ class StockItemUninstall(AjaxView, FormMixin): stock_item = StockItem.objects.get(pk=pk) items.append(stock_item) except (ValueError, StockItem.DoesNotExist): - pass + pass self.stock_items = items