2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

PEP fixes

This commit is contained in:
Oliver Walters
2020-04-26 16:44:35 +10:00
parent e768ada83b
commit 3c5ba75d27
4 changed files with 13 additions and 18 deletions

View File

@ -265,6 +265,9 @@ class Build(MPTTModel):
for build_item in self.allocated_stock.all().prefetch_related('stock_item'):
build_item.complete_allocation(user)
# TODO - Remove the builditem from the database
# build_item.delete()
notes = 'Built {q} on {now}'.format(
q=self.quantity,
now=str(datetime.now().date())