2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Added stocktake / add / remove actions to StockItemDetail page

This commit is contained in:
Oliver
2018-05-08 22:07:24 +10:00
parent 25e0de1ce7
commit 3b6ef3f008
3 changed files with 48 additions and 11 deletions

View File

@ -48,7 +48,10 @@
</div>
{% endblock %}
{% block js_load %}
{{ block.super }}
<script type='text/javacript' src="{% static script/inventree/stock.js' %}"></script>
{% endblock %}
{% block js_ready %}
{{ block.super }}
@ -165,6 +168,14 @@
title: 'Stock',
searchable: false,
sortable: true,
formatter: function(value, row, index, field) {
if (value) {
return renderLink(value, row.url + 'stock/');
}
else {
return '';
}
}
}
],
url: "{% url 'api-part-list' %}",