diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index fad0f12e28..9d02f78ebe 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -1345,7 +1345,8 @@ class Part(MPTTModel): queryset = OrderModels.SalesOrderAllocation.objects.filter(item__part__id=self.id) - pending = kwargs.get('pending', None) + # Default behaviour is to only return *pending* allocations + pending = kwargs.get('pending', True) if pending is True: # Look only for 'open' orders which have not shipped