Check for null part instance (#6011)

- Error reported via sentry.io
This commit is contained in:
Oliver 2023-11-30 16:31:07 +11:00 committed by GitHub
parent ae4c4242dd
commit a7728d31ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):