diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 4f7b2d8f4f..6e8f12eeae 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -46,6 +46,9 @@ class Part(models.Model): # Internal Part Number (optional) IPN = models.CharField(max_length=100, blank=True) + # Provide a URL for an external link + URL = models.URLField(blank=True) + # Part category - all parts must be assigned to a category category = models.ForeignKey(PartCategory, related_name='parts', null=True, blank=True, diff --git a/InvenTree/part/templates/navbar.html b/InvenTree/part/templates/navbar.html index f85b8fb541..1f9a541940 100644 --- a/InvenTree/part/templates/navbar.html +++ b/InvenTree/part/templates/navbar.html @@ -2,7 +2,7 @@ \ No newline at end of file diff --git a/InvenTree/supplier/templates/supplier/detail.html b/InvenTree/supplier/templates/supplier/detail.html index e3cd207e0c..9337b700db 100644 --- a/InvenTree/supplier/templates/supplier/detail.html +++ b/InvenTree/supplier/templates/supplier/detail.html @@ -21,7 +21,7 @@ {% for part in supplier.parts.all %} {{ part.part.name }} - {{ part.SKU }} + {{ part.SKU }} Manufacturer name goes here MPN goes here {{ part.URL }}