From 1b5dbfbe26462b5e628ecdf8366945cfba410fc2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 27 Apr 2018 23:14:25 +1000 Subject: [PATCH] Reload page when adding BOM item to part --- InvenTree/part/templates/part/bom.html | 7 ++++++- InvenTree/part/templates/part/category_parts.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index ce1c6bcd9d..ec4c1635d9 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -74,7 +74,12 @@ $(document).ready(function(){ $("#new-bom-item").click(function () { launchModalForm("#modal-form", "{% url 'bom-item-create' %}", - {data: {parent: {{ part.id }} }}); + { + reload: true, + data: { + parent: {{ part.id }} + } + }); }); }); diff --git a/InvenTree/part/templates/part/category_parts.html b/InvenTree/part/templates/part/category_parts.html index 97dc1da910..8ae4bc91b9 100644 --- a/InvenTree/part/templates/part/category_parts.html +++ b/InvenTree/part/templates/part/category_parts.html @@ -17,7 +17,7 @@ {{ part.category_path }} {% endif %} - {{ part.total_stock }} + {{ part.total_stock }} {% endfor %}