mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Mark a build as "production" whenever a build output is created
This commit is contained in:
parent
ac03dab8de
commit
8d0845d92b
@ -526,6 +526,10 @@ class Build(MPTTModel):
|
||||
is_building=True
|
||||
)
|
||||
|
||||
if self.status == BuildStatus.PENDING:
|
||||
self.status = BuildStatus.PRODUCTION
|
||||
self.save()
|
||||
|
||||
@transaction.atomic
|
||||
def deleteBuildOutput(self, output):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user