From 7db938eda032ce428a33f9ff895f0105806e983e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 1 Sep 2019 23:24:27 +1000 Subject: [PATCH] Show the build item on the stock-item page (if applicable) --- InvenTree/stock/templates/stock/item.html | 6 ++++++ Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index 1e7e44046c..87abe0adfe 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -90,6 +90,12 @@ {{ item.batch }} {% endif %} + {% if item.build %} + + Build + {{ item.build }} + + {% endif %} {% if item.purchase_order %} Purchase Order diff --git a/Makefile b/Makefile index d997c76344..c898af195d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ migrate: python3 InvenTree/manage.py makemigrations stock python3 InvenTree/manage.py makemigrations build python3 InvenTree/manage.py makemigrations order + python3 InvenTree/manage.py migrate python3 InvenTree/manage.py migrate --run-syncdb python3 InvenTree/manage.py check