2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +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

@ -324,6 +324,9 @@ class SalesOrder(Order):
for allocation in line.allocations.all():
allocation.complete_allocation(user)
# TODO - Remove the allocation from the database
# allocation.delete()
# Ensure the order status is marked as "Shipped"
self.status = SalesOrderStatus.SHIPPED
self.shipment_date = datetime.now().date()