mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reload page when adding BOM item to part
This commit is contained in:
parent
4d6e2aca2c
commit
1b5dbfbe26
@ -74,7 +74,12 @@ $(document).ready(function(){
|
|||||||
$("#new-bom-item").click(function () {
|
$("#new-bom-item").click(function () {
|
||||||
launchModalForm("#modal-form",
|
launchModalForm("#modal-form",
|
||||||
"{% url 'bom-item-create' %}",
|
"{% url 'bom-item-create' %}",
|
||||||
{data: {parent: {{ part.id }} }});
|
{
|
||||||
|
reload: true,
|
||||||
|
data: {
|
||||||
|
parent: {{ part.id }}
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<a href="{% url 'category-detail' part.category.id %}">{{ part.category_path }}</a>
|
<a href="{% url 'category-detail' part.category.id %}">{{ part.category_path }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ part.total_stock }}</td>
|
<td><a href="{% url 'part-stock' part.id %}">{{ part.total_stock }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user