mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add ability to edit expiry_date for StockItem
This commit is contained in:
parent
6d4c81e68b
commit
1a930f7f80
@ -16,6 +16,7 @@ from mptt.fields import TreeNodeChoiceField
|
||||
from InvenTree.helpers import GetExportFormats
|
||||
from InvenTree.forms import HelperForm
|
||||
from InvenTree.fields import RoundingDecimalFormField
|
||||
from InvenTree.fields import DatePickerFormField
|
||||
|
||||
from report.models import TestReport
|
||||
|
||||
@ -392,6 +393,10 @@ class EditStockItemForm(HelperForm):
|
||||
part - Cannot be edited after creation
|
||||
"""
|
||||
|
||||
expiry_date = DatePickerFormField(
|
||||
help_text=('Expiration date for this stock item'),
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = StockItem
|
||||
|
||||
@ -400,6 +405,7 @@ class EditStockItemForm(HelperForm):
|
||||
'serial',
|
||||
'batch',
|
||||
'status',
|
||||
'expiry_date',
|
||||
'purchase_price',
|
||||
'link',
|
||||
'delete_on_deplete',
|
||||
|
Loading…
Reference in New Issue
Block a user