diff --git a/InvenTree/order/views.py b/InvenTree/order/views.py index 8895c134ba33..4130a06eaa35 100644 --- a/InvenTree/order/views.py +++ b/InvenTree/order/views.py @@ -342,8 +342,9 @@ def get_part(self, id=False): else: return None - if id: + if part and id: return part.id + return part def get_so(self, pk=False):