diff --git a/InvenTree/build/forms.py b/InvenTree/build/forms.py
index 19bf3566dc..43899ba819 100644
--- a/InvenTree/build/forms.py
+++ b/InvenTree/build/forms.py
@@ -83,24 +83,6 @@ class BuildOutputDeleteForm(HelperForm):
]
-class CompleteBuildForm(HelperForm):
- """
- Form for marking a build as complete
- """
-
- confirm = forms.BooleanField(
- required=True,
- label=_('Confirm'),
- help_text=_('Mark build as complete'),
- )
-
- class Meta:
- model = Build
- fields = [
- 'confirm',
- ]
-
-
class CancelBuildForm(HelperForm):
""" Form for cancelling a build """
diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html
index 74cd1a9d96..312accb18f 100644
--- a/InvenTree/build/templates/build/build_base.html
+++ b/InvenTree/build/templates/build/build_base.html
@@ -229,15 +229,6 @@ src="{% static 'img/blank_image.png' %}"
allocated: {% if build.areUntrackedPartsFullyAllocated %}true{% else %}false{% endif %},
completed: {% if build.remaining == 0 %}true{% else %}false{% endif %},
});
-
- return;
- launchModalForm(
- "{% url 'build-complete' build.id %}",
- {
- reload: true,
- submit_text: '{% trans "Complete Build" %}',
- }
- );
{% endif %}
});
diff --git a/InvenTree/build/templates/build/complete.html b/InvenTree/build/templates/build/complete.html
deleted file mode 100644
index eeedc027dd..0000000000
--- a/InvenTree/build/templates/build/complete.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends "modal_form.html" %}
-{% load i18n %}
-
-{% block pre_form_content %}
-
-{% if build.can_complete %}
-
- {% trans "Build Order is complete" %}
-
-{% else %}
-
-
{% trans "Build Order is incomplete" %}
-
- {% if build.incomplete_count > 0 %}
- - {% trans "Incompleted build outputs remain" %}
- {% endif %}
- {% if build.completed < build.quantity %}
- - {% trans "Required build quantity has not been completed" %}
- {% endif %}
- {% if not build.areUntrackedPartsFullyAllocated %}
- - {% trans "Required stock has not been fully allocated" %}
- {% endif %}
-
-
-{% endif %}
-{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/build/urls.py b/InvenTree/build/urls.py
index 8ea339ae26..fecece232e 100644
--- a/InvenTree/build/urls.py
+++ b/InvenTree/build/urls.py
@@ -11,7 +11,6 @@ build_detail_urls = [
url(r'^delete/', views.BuildDelete.as_view(), name='build-delete'),
url(r'^create-output/', views.BuildOutputCreate.as_view(), name='build-output-create'),
url(r'^delete-output/', views.BuildOutputDelete.as_view(), name='build-output-delete'),
- url(r'^complete/', views.BuildComplete.as_view(), name='build-complete'),
url(r'^.*$', views.BuildDetail.as_view(), name='build-detail'),
]
diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py
index 1d28cb8d50..1a933af835 100644
--- a/InvenTree/build/views.py
+++ b/InvenTree/build/views.py
@@ -246,39 +246,6 @@ class BuildOutputDelete(AjaxUpdateView):
}
-class BuildComplete(AjaxUpdateView):
- """
- View to mark the build as complete.
-
- Requirements:
- - There can be no outstanding build outputs
- - The "completed" value must meet or exceed the "quantity" value
- """
-
- model = Build
- form_class = forms.CompleteBuildForm
-
- ajax_form_title = _('Complete Build Order')
- ajax_template_name = 'build/complete.html'
-
- def validate(self, build, form, **kwargs):
-
- if build.incomplete_count > 0:
- form.add_error(None, _('Build order cannot be completed - incomplete outputs remain'))
-
- def save(self, build, form, **kwargs):
- """
- Perform the build completion step
- """
-
- build.complete_build(self.request.user)
-
- def get_data(self):
- return {
- 'success': _('Completed build order')
- }
-
-
class BuildDetail(InvenTreeRoleMixin, DetailView):
"""
Detail view of a single Build object.