mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More fields
This commit is contained in:
parent
d111e7bff0
commit
5ad915a845
@ -1232,7 +1232,7 @@ class StockItemEdit(AjaxUpdateView):
|
||||
|
||||
# Hide the "expiry date" field if the feature is not enabled
|
||||
if not common.settings.stock_expiry_enabled():
|
||||
form.fields.pop('expiry_date')
|
||||
self.fields['expiry_date'].widget = HiddenInput()
|
||||
|
||||
item = self.get_object()
|
||||
|
||||
@ -1581,7 +1581,7 @@ class StockItemCreate(AjaxCreateView):
|
||||
|
||||
# Hide the "expiry date" field if the feature is not enabled
|
||||
if not common.settings.stock_expiry_enabled():
|
||||
form.fields.pop('expiry_date')
|
||||
self.fields['expiry_date'].widget = HiddenInput()
|
||||
|
||||
part = self.get_part(form=form)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user