mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
commit
7c7055c0a0
@ -144,11 +144,15 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
|
|||||||
<td>{% trans "Build Order" %}</td>
|
<td>{% trans "Build Order" %}</td>
|
||||||
<td><a href="{% url 'build-detail' item.build_order.id %}">{{ item.build_order }}</a></td>
|
<td><a href="{% url 'build-detail' item.build_order.id %}">{{ item.build_order }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% elif item.location %}
|
{% else %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class='fas fa-map-marker-alt'></span></td>
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
<td>{% trans "Location" %}</td>
|
<td>{% trans "Location" %}</td>
|
||||||
|
{% if item.location %}
|
||||||
<td><a href="{% url 'stock-location-detail' item.location.id %}">{{ item.location.name }}</a></td>
|
<td><a href="{% url 'stock-location-detail' item.location.id %}">{{ item.location.name }}</a></td>
|
||||||
|
{% else %}
|
||||||
|
<td>{% trans "No location set" %}</td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.uid %}
|
{% if item.uid %}
|
||||||
|
@ -189,9 +189,7 @@
|
|||||||
$('#item-create').click(function () {
|
$('#item-create').click(function () {
|
||||||
launchModalForm("{% url 'stock-item-create' %}",
|
launchModalForm("{% url 'stock-item-create' %}",
|
||||||
{
|
{
|
||||||
success: function() {
|
follow: true,
|
||||||
$("#stock-table").bootstrapTable('refresh');
|
|
||||||
},
|
|
||||||
data: {
|
data: {
|
||||||
{% if location %}
|
{% if location %}
|
||||||
location: {{ location.id }}
|
location: {{ location.id }}
|
||||||
|
Loading…
Reference in New Issue
Block a user