From ae68463f4646b5c7815291a75106f75d8be50301 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 8 Jul 2021 11:16:04 +1000 Subject: [PATCH] API: Allow search of IPN field for ManufacturerPart and SupplierPart --- InvenTree/company/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/company/api.py b/InvenTree/company/api.py index 999e4e4039..2c05c98d91 100644 --- a/InvenTree/company/api.py +++ b/InvenTree/company/api.py @@ -158,6 +158,7 @@ class ManufacturerPartList(generics.ListCreateAPIView): 'manufacturer__name', 'description', 'MPN', + 'part__IPN', 'part__name', 'part__description', ] @@ -355,6 +356,7 @@ class SupplierPartList(generics.ListCreateAPIView): 'manufacturer_part__manufacturer__name', 'description', 'manufacturer_part__MPN', + 'part__IPN', 'part__name', 'part__description', ]