2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

PEP fixes

This commit is contained in:
Oliver Walters
2019-05-26 00:22:05 +10:00
parent 75b21bdd8f
commit 6603d6e9ed
3 changed files with 6 additions and 8 deletions

View File

@ -208,9 +208,9 @@ class StockItemCreate(AjaxCreateView):
try:
part = Part.objects.get(id=part_id)
# Hide the 'part' field (as a valid part is selected)
form.fields['part'].widget = HiddenInput()
# If the part is NOT purchaseable, hide the supplier_part field
if not part.purchaseable: