mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Typo fix
This commit is contained in:
1 parent
5ad915a845
commit
d43cfccfc1
1 file changed
+2
-2
@@ -1232,7 +1232,7 @@ class StockItemEdit(AjaxUpdateView):
|
|||||||
|
|
||||||
# Hide the "expiry date" field if the feature is not enabled
|
# Hide the "expiry date" field if the feature is not enabled
|
||||||
if not common.settings.stock_expiry_enabled():
|
if not common.settings.stock_expiry_enabled():
|
||||||
self.fields['expiry_date'].widget = HiddenInput()
|
form.fields['expiry_date'].widget = HiddenInput()
|
||||||
|
|
||||||
item = self.get_object()
|
item = self.get_object()
|
||||||
|
|
||||||
@@ -1581,7 +1581,7 @@ class StockItemCreate(AjaxCreateView):
|
|||||||
|
|
||||||
# Hide the "expiry date" field if the feature is not enabled
|
# Hide the "expiry date" field if the feature is not enabled
|
||||||
if not common.settings.stock_expiry_enabled():
|
if not common.settings.stock_expiry_enabled():
|
||||||
self.fields['expiry_date'].widget = HiddenInput()
|
form.fields['expiry_date'].widget = HiddenInput()
|
||||||
|
|
||||||
part = self.get_part(form=form)
|
part = self.get_part(form=form)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user