2
0
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:
Oliver Walters
2019-07-16 00:10:24 +10:00
parent 310d4b5f07
commit bb799d98be
7 changed files with 101 additions and 13 deletions

View File

@@ -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',
]