mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 07:25:31 +00:00
Throw validation error if no build outputs have been started
This commit is contained in:
1 parent
318e84883a
commit
00d7cf88e8
2 files changed
+6
No files matched your search
@@ -437,6 +437,9 @@ class Build(MPTTModel, ReferenceIndexingMixin):
|
||||
def output_count(self):
|
||||
return self.build_outputs.count()
|
||||
|
||||
def has_build_outputs(self):
|
||||
return self.output_count > 0
|
||||
|
||||
def get_build_outputs(self, **kwargs):
|
||||
"""
|
||||
Return a list of build outputs.
|
||||
|
||||
Reference in new issue
Block a user