2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Added StockTracking API

/api/stock/track/
ListCreate API view
StockItem page now shows bootrap-table of tracking notes
This commit is contained in:
Oliver
2018-05-08 22:30:32 +10:00
parent 002c047105
commit f2982a59ad
4 changed files with 93 additions and 20 deletions

View File

@ -320,6 +320,9 @@ class StockItemTracking(models.Model):
""" Stock tracking entry
"""
def get_absolute_url(self):
return '/stock/track/{id}/'.format(id=self.id)
# Stock item
item = models.ForeignKey(StockItem, on_delete=models.CASCADE,
related_name='tracking_info')