2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Add ability to display "out of stock" items against a part

This commit is contained in:
Oliver Walters
2020-06-22 10:48:41 +10:00
parent 16bea33695
commit 930f903f5d
7 changed files with 15 additions and 14 deletions

View File

@ -40,7 +40,6 @@
part: {{ part.id }},
location_detail: true,
part_detail: true,
in_stock: true,
},
groupByField: 'location',
buttons: [

View File

@ -51,15 +51,6 @@
</li>
{% endif %}
{% if part.trackable %}
{% if 0 %}
<!-- TODO - Add the 'tracking' tab back in -->
<li{% ifequal tab 'track' %} class="active"{% endifequal %}>
<a href="{% url 'part-track' part.id %}">{% trans "Tracking" %}
{% if parts.serials.all|length > 0 %}
<span class="badge">{{ part.serials.all|length }}</span>
{% endif %}
</a></li>
{% endif %}
<li{% ifequal tab 'tests' %} class='active'{% endifequal %}>
<a href='{% url "part-test-templates" part.id %}'>{% trans "Tests" %}
{% if part.getTestTemplates.count > 0 %}<span class='badge'>{{ part.getTestTemplates.count }}</span>{% endif %}