diff --git a/InvenTree/stock/fixtures/stock.yaml b/InvenTree/stock/fixtures/stock.yaml index 79b3585420..719d8a34ce 100644 --- a/InvenTree/stock/fixtures/stock.yaml +++ b/InvenTree/stock/fixtures/stock.yaml @@ -67,6 +67,7 @@ pk: 102 fields: part: 25 + batch: 'ABCDE' location: 7 quantity: 3 level: 0 @@ -93,6 +94,7 @@ part: 10001 location: 7 quantity: 5 + batch: "AAA" level: 0 tree_id: 0 lft: 0 @@ -103,6 +105,7 @@ fields: part: 10001 location: 7 + batch: "AAA" quantity: 1 serial: 1 level: 0 diff --git a/InvenTree/stock/tests.py b/InvenTree/stock/tests.py index 199a99121e..1bd4feb02f 100644 --- a/InvenTree/stock/tests.py +++ b/InvenTree/stock/tests.py @@ -528,6 +528,7 @@ class TestResultTest(StockTest): item.pk = None item.serial = None item.quantity = 50 + item.batch = "B344" item.save()