2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-06 05:30:56 +00:00

Validate and save the new serailizer

This commit is contained in:
Oliver Walters
2022-01-07 11:33:27 +11:00
parent 960784644f
commit 12b3a5c9cc
5 changed files with 84 additions and 2 deletions

View File

@ -555,7 +555,7 @@ class Build(MPTTModel, ReferenceIndexingMixin):
if self.incomplete_count > 0:
return False
if self.completed < self.quantity:
if self.remaining > 0:
return False
if not self.areUntrackedPartsFullyAllocated():