Reload page when adding BOM item to part

This commit is contained in:
Oliver 2018-04-27 23:14:25 +10:00
parent 4d6e2aca2c
commit 1b5dbfbe26
2 changed files with 7 additions and 2 deletions

View File

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

View File

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