diff --git a/InvenTree/stock/migrations/0008_stockitemtracking_url.py b/InvenTree/stock/migrations/0008_stockitemtracking_url.py new file mode 100644 index 0000000000..e27f7f8854 --- /dev/null +++ b/InvenTree/stock/migrations/0008_stockitemtracking_url.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.2 on 2019-07-15 11:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('stock', '0007_auto_20190618_0042'), + ] + + operations = [ + migrations.AddField( + model_name='stockitemtracking', + name='URL', + field=models.URLField(blank=True, help_text='Link to external page for further information'), + ), + ] diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 34dcd00464..fec11f0211 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -512,6 +512,7 @@ class StockItemTracking(models.Model): date: Date that this tracking info was created title: Title of this tracking info (generated by system) notes: Associated notes (input by user) + URL: Optional URL to external page user: The user associated with this tracking info quantity: The StockItem quantity at this point in time """ @@ -529,6 +530,8 @@ class StockItemTracking(models.Model): notes = models.TextField(blank=True) + URL = models.URLField(blank=True, help_text='Link to external page for further information') + user = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True) system = models.BooleanField(default=False)