mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
PEP fxies
This commit is contained in:
parent
5240c60e0b
commit
5f503c7e0f
@ -728,7 +728,7 @@ class StockItem(MPTTModel):
|
|||||||
if not variant:
|
if not variant:
|
||||||
# Ignore null values
|
# Ignore null values
|
||||||
return
|
return
|
||||||
|
|
||||||
if variant == self.part:
|
if variant == self.part:
|
||||||
# Variant is the same as the current part
|
# Variant is the same as the current part
|
||||||
return
|
return
|
||||||
|
@ -643,7 +643,7 @@ class StockItemConvert(AjaxUpdateView):
|
|||||||
form.fields['part'].queryset = item.part.get_conversion_options()
|
form.fields['part'].queryset = item.part.get_conversion_options()
|
||||||
|
|
||||||
return form
|
return form
|
||||||
|
|
||||||
def save(self, obj, form):
|
def save(self, obj, form):
|
||||||
|
|
||||||
stock_item = self.get_object()
|
stock_item = self.get_object()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user