2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Fix for build complete form

This commit is contained in:
Oliver Walters
2020-04-27 20:16:41 +10:00
parent 646dd65d27
commit 2b99cf353a
3 changed files with 8 additions and 7 deletions

View File

@ -323,7 +323,7 @@ class Build(MPTTModel):
if not self.isPartFullyAllocated(part):
return False
return True
return True
def isPartFullyAllocated(self, part):
"""

View File

@ -5,15 +5,15 @@
<h4>{% trans "Build" %} - {{ build }}</h4>
{% if not build.isFullyAllocated %}
{% if build.isFullyAllocated %}
<div class='alert alert-block alert-info'>
<h4>{% trans "Build order allocation is complete" %}</h4>
</div>
{% else %}
<div class='alert alert-block alert-danger'>
<h4>{% trans "Warning: Build order allocation is not complete" %}</h4>
{% trans "Build Order has not been fully allocated. Ensure that all Stock Items have been allocated to the Build" %}
</div>
{% else %}
<div class='alert alert-block alert-info'>
<h4>{% trans "Build order allocation is complete" %}</h4>
</div>
{% endif %}
<div class='alert alert-block alert-success'>