Save the date of Build cancellation
This commit is contained in:
parent
b91de1af7b
commit
a0ad95ab28
|
|
@ -133,6 +133,9 @@ class Build(models.Model):
|
|||
for item in self.allocated_stock.all():
|
||||
item.delete()
|
||||
|
||||
# Date of 'completion' is the date the build was cancelled
|
||||
self.completion_date = datetime.now().date()
|
||||
|
||||
self.status = self.CANCELLED
|
||||
self.save()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue