2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Remove the "scheduled_for_deletion" field from the StockItem model

Reverts back to the original behaviour - stock items are just deleted
This commit is contained in:
Oliver
2021-12-05 18:14:14 +11:00
parent a821717103
commit 93a240d9c3
9 changed files with 35 additions and 107 deletions

View File

@ -10,7 +10,6 @@ from InvenTree import status_codes as status
from build.models import Build, BuildItem, get_next_build_number
from part.models import Part, BomItem
from stock.models import StockItem
from stock.tasks import delete_old_stock_items
class BuildTest(TestCase):
@ -354,11 +353,6 @@ class BuildTest(TestCase):
# the original BuildItem objects should have been deleted!
self.assertEqual(BuildItem.objects.count(), 0)
self.assertEqual(StockItem.objects.count(), 8)
# Clean up old stock items
delete_old_stock_items()
# New stock items should have been created!
self.assertEqual(StockItem.objects.count(), 7)