2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 07:31:10 +00:00

Added 'part tracking' page

- e.g. /part/<pk>/track
This commit is contained in:
Oliver
2018-04-14 00:46:18 +10:00
parent eec725d90f
commit 63f7fe640c
9 changed files with 38 additions and 6 deletions

View File

@@ -9,4 +9,10 @@ Used in {{ part.usedInCount }} other parts.<br>
<a href="{% url 'stock' part.id %}">There are {{ part.stock }} units in stock.</a>
<br><br>
{% if part.trackable %}
<a href="{% url 'track' part.id %}">Part tracking</a>
{% else %}
{{ part.name }} does not have part tracking enabled
{% endif %}
{% endblock %}

View File

@@ -1,4 +1,4 @@
{% extends "part/base.html" %}
{% extends "base.html" %}
{% block content %}

View File

@@ -1,4 +1,4 @@
{% extends "part/base.html" %}
{% extends "base.html" %}
{% block content %}

View File

@@ -0,0 +1,20 @@
{% extends "part/part_base.html" %}
{% block details %}
Part tracking for {{ part.name }}
<table>
<tr>
<th>Serial</th>
<th>Status</th>
</tr>
{% for track in part.serials.all %}
<tr>
<td>{{ track.serial }}</td>
<td>{{ track.status }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}