2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

style fixes

This commit is contained in:
Oliver Walters 2020-09-28 22:01:45 +10:00
parent a18886f196
commit b2b22762ef
3 changed files with 3 additions and 2 deletions

View File

@ -292,6 +292,7 @@ class UninstallStockForm(forms.ModelForm):
'confirm', 'confirm',
] ]
class AdjustStockForm(forms.ModelForm): class AdjustStockForm(forms.ModelForm):
""" Form for performing simple stock adjustments. """ Form for performing simple stock adjustments.

View File

@ -625,7 +625,7 @@ class StockItem(MPTTModel):
self.addTransactionNote( self.addTransactionNote(
_('Installed in stock item') + ' ' + str(otherItem.pk), _('Installed in stock item') + ' ' + str(otherItem.pk),
user, user,
notes=notes notes=notes
) )
@transaction.atomic @transaction.atomic

View File

@ -765,7 +765,7 @@ class StockItemUninstall(AjaxView, FormMixin):
stock_item = StockItem.objects.get(pk=pk) stock_item = StockItem.objects.get(pk=pk)
items.append(stock_item) items.append(stock_item)
except (ValueError, StockItem.DoesNotExist): except (ValueError, StockItem.DoesNotExist):
pass pass
self.stock_items = items self.stock_items = items