mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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
Block a user