diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index c10295ee6a..40c80e882c 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -1042,7 +1042,9 @@ class StockItem(MPTTModel): as all named tests are accessible. """ - results = self.getTestResults(**kwargs).order_by('-date') + # Filter results by "date", so that newer results + # will override older ones. + results = self.getTestResults(**kwargs).order_by('date') result_map = {}