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