mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
style fixes
This commit is contained in:
parent
a18886f196
commit
b2b22762ef
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user