{% extends "stock/item_base.html" %} {% load static %} {% load inventree_extras %} {% load i18n %} {% block details %} {% include "stock/tabs.html" with tab="tracking" %} {% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %} {% if owner_control.value == "True" %} {% authorized_owners item.owner as owners %} {% endif %}

{% trans "Stock Tracking Information" %}


{% if owner_control.value == "False" or owner_control.value == "True" and user in owners %} {% if roles.stock.change and not item.is_building %}
{% endif %} {% endif %}
{% endblock %} {% block js_ready %} {{ block.super }} $("#new-entry").click(function() { launchModalForm( "{% url 'stock-tracking-create' item.id %}", { reload: true, } ); }); loadStockTrackingTable($("#track-table"), { params: function(p) { return { ordering: '-date', item: {{ item.pk }}, user_detail: true, }; }, url: "{% url 'api-stock-track' %}", }); {% endblock %}