Check for null part instance (#6011)

- Error reported via sentry.io
This commit is contained in:
Oliver authored and GitHub committed 2023-11-30 16:31:07 +11:00
1 parent ae4c4242dd
commit a7728d31ab
1 file changed
+2 -1
+2 -1
View File
@@ -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):