Add a button if a stock item test report is available

This commit is contained in:
Oliver Walters committed 2020-05-22 21:38:05 +10:00
1 parent 1ad7e699a9
commit 71681bfda1
3 files changed
+12 -1

No files matched your search

@@ -93,8 +93,13 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<span class='fas fa-copy'/>
</button>
{% endif %}
{% if item.part.has_test_report_templates %}
<button type='button' class='btn btn-default' id='stock-test-report' title='Generate test report'>
<span class='fas fa-tasks'/>
</button>
{% endif %}
<button type='button' class='btn btn-default' id='stock-edit' title='Edit stock item'>
<span class='fas fa-edit'/>
<span class='fas fa-edit icon-blue'/>
</button>
{% if item.can_delete %}
<button type='button' class='btn btn-default' id='stock-delete' title='Edit stock item'>