mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +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.helpers import GetExportFormats
|
||||||
from InvenTree.forms import HelperForm
|
from InvenTree.forms import HelperForm
|
||||||
from InvenTree.fields import RoundingDecimalFormField
|
from InvenTree.fields import RoundingDecimalFormField
|
||||||
|
from InvenTree.fields import DatePickerFormField
|
||||||
|
|
||||||
from report.models import TestReport
|
from report.models import TestReport
|
||||||
|
|
||||||
@ -392,6 +393,10 @@ class EditStockItemForm(HelperForm):
|
|||||||
part - Cannot be edited after creation
|
part - Cannot be edited after creation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
expiry_date = DatePickerFormField(
|
||||||
|
help_text=('Expiration date for this stock item'),
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = StockItem
|
model = StockItem
|
||||||
|
|
||||||
@ -400,6 +405,7 @@ class EditStockItemForm(HelperForm):
|
|||||||
'serial',
|
'serial',
|
||||||
'batch',
|
'batch',
|
||||||
'status',
|
'status',
|
||||||
|
'expiry_date',
|
||||||
'purchase_price',
|
'purchase_price',
|
||||||
'link',
|
'link',
|
||||||
'delete_on_deplete',
|
'delete_on_deplete',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user