From 02bd9c2d0558da79806a6af61be5b6ac09ef3539 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 6 May 2019 11:23:55 +1000 Subject: [PATCH] Search part by IPN --- InvenTree/part/api.py | 1 + InvenTree/templates/InvenTree/search.html | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 9db2bf102f..26dbc2e492 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -151,6 +151,7 @@ class PartList(generics.ListCreateAPIView): search_fields = [ '$name', 'description', + '$IPN', ] diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index a3e709870f..e868378ee4 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -48,6 +48,11 @@ return renderLink(value, row.url); } }, + { + field: 'IPN', + title: 'Internal Part Number', + searchable: true, + }, { field: 'description', title: 'Description',