mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 10:21:18 +00:00
PEP fxies
This commit is contained in:
1 parent
5240c60e0b
commit
5f503c7e0f
2 files changed
+2
-2
No files matched your search
@@ -728,7 +728,7 @@ class StockItem(MPTTModel):
|
||||
if not variant:
|
||||
# Ignore null values
|
||||
return
|
||||
|
||||
|
||||
if variant == self.part:
|
||||
# Variant is the same as the current part
|
||||
return
|
||||
|
||||
@@ -643,7 +643,7 @@ class StockItemConvert(AjaxUpdateView):
|
||||
form.fields['part'].queryset = item.part.get_conversion_options()
|
||||
|
||||
return form
|
||||
|
||||
|
||||
def save(self, obj, form):
|
||||
|
||||
stock_item = self.get_object()
|
||||
|
||||
Reference in new issue
Block a user