mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
pop purchase_price field for StockItemEdit form
This commit is contained in:
parent
fe0d356675
commit
2ad090c224
@ -1307,7 +1307,8 @@ class StockItemEdit(AjaxUpdateView):
|
||||
# If the part cannot be purchased, hide the supplier_part field
|
||||
if not item.part.purchaseable:
|
||||
form.fields['supplier_part'].widget = HiddenInput()
|
||||
form.fields['purchase_price'].widget = HiddenInput()
|
||||
|
||||
form.fields.pop('purchase_price')
|
||||
else:
|
||||
query = form.fields['supplier_part'].queryset
|
||||
query = query.filter(part=item.part.id)
|
||||
|
Loading…
Reference in New Issue
Block a user