diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index 36aebff870..bf43d0ca85 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -415,7 +415,7 @@ InvenTree | Allocate Parts launchModalForm( "{% url 'build-auto-allocate' build.id %}", { - reload: true, + success: reloadTable, } ); }); @@ -424,7 +424,7 @@ InvenTree | Allocate Parts launchModalForm( "{% url 'build-unallocate' build.id %}", { - reload: true, + success: reloadTable, } ); }); diff --git a/InvenTree/build/templates/build/auto_allocate.html b/InvenTree/build/templates/build/auto_allocate.html index fc1e42096b..241471e304 100644 --- a/InvenTree/build/templates/build/auto_allocate.html +++ b/InvenTree/build/templates/build/auto_allocate.html @@ -1,5 +1,6 @@ {% extends "modal_form.html" %} {% load i18n %} +{% load inventree_extras %} {% block pre_form_content %} {{ block.super }} @@ -28,7 +29,7 @@ {{ item.stock_item.part.full_name }}
{{ item.stock_item.part.description }} - {{ item.quantity }} + {% decimal item.quantity %} {{ item.stock_item.location }} {% endfor %} @@ -36,7 +37,9 @@ {% else %}
- {% trans "No stock items found that can be allocated to this build" %} + {% trans "No stock items found that can be automatically allocated to this build" %} +
+ {% trans "Stock items will have to be manually allocated" %}
{% endif %}