mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 01:08:12 +00:00
Add ability to create new stock tracking note for a stock item
This commit is contained in:
@@ -8,7 +8,7 @@ from __future__ import unicode_literals
|
||||
from django import forms
|
||||
from InvenTree.forms import HelperForm
|
||||
|
||||
from .models import StockLocation, StockItem
|
||||
from .models import StockLocation, StockItem, StockItemTracking
|
||||
|
||||
|
||||
class EditStockLocationForm(HelperForm):
|
||||
@@ -104,3 +104,17 @@ class EditStockItemForm(HelperForm):
|
||||
'notes',
|
||||
'URL',
|
||||
]
|
||||
|
||||
|
||||
class TrackingEntryForm(HelperForm):
|
||||
""" Form for creating / editing a StockItemTracking object.
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
model = StockItemTracking
|
||||
|
||||
fields = [
|
||||
'title',
|
||||
'notes',
|
||||
'URL',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user