mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-06 05:30:56 +00:00
Throw validation error if no build outputs have been started
This commit is contained in:
@ -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