Show the build item on the stock-item page (if applicable)

This commit is contained in:
Oliver Walters 2019-09-01 23:24:27 +10:00
parent c45c4e236e
commit 7db938eda0
2 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,12 @@
<td>{{ item.batch }}</td>
</tr>
{% endif %}
{% if item.build %}
<tr>
<td>Build</td>
<td><a href="{% url 'build-detail' item.build.id %}">{{ item.build }}</a></td>
</tr>
{% endif %}
{% if item.purchase_order %}
<tr>
<td>Purchase Order</td>

View File

@ -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