Merge pull request #966 from SchrodingersGat/stock-item-link

Add link from stock item to base part
This commit is contained in:
Oliver 2020-09-06 00:01:36 +10:00 committed by GitHub
commit f0713ce01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,9 +61,9 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<hr>
<h4>
{% if item.serialized %}
{{ item.part.full_name}} # {{ item.serial }}
<a href='{% url "part-detail" item.part.pk %}'>{{ item.part.full_name}}</a> # {{ item.serial }}
{% else %}
{% decimal item.quantity %} &times {{ item.part.full_name }}
<a href='{% url "part-detail" item.part.pk %}'>{{ item.part.full_name }}</a> &times {% decimal item.quantity %}
{% endif %}
</h4>