Merge pull request #845 from SchrodingersGat/tweaks

Tweaks
This commit is contained in:
Oliver 2020-05-30 22:03:15 +10:00 committed by GitHub
commit 7c7055c0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -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 %}

View File

@ -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 }}