From 0013eb4c23468669d5c780ac9d2e2a6aea5e924e Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 21 Jun 2021 00:03:16 +1000 Subject: [PATCH] Adds inline for SupplierPart --- InvenTree/company/admin.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/InvenTree/company/admin.py b/InvenTree/company/admin.py index 2ebd63acc9..2c3be87c84 100644 --- a/InvenTree/company/admin.py +++ b/InvenTree/company/admin.py @@ -101,6 +101,14 @@ class ManufacturerPartParameterInline(admin.TabularInline): model = ManufacturerPartParameter +class SupplierPartInline(admin.TabularInline): + """ + Inline for the SupplierPart model + """ + + model = SupplierPart + + class ManufacturerPartAdmin(ImportExportModelAdmin): """ Admin class for ManufacturerPart model @@ -117,7 +125,8 @@ class ManufacturerPartAdmin(ImportExportModelAdmin): ] inlines = [ - ManufacturerPartParameterInline + SupplierPartInline, + ManufacturerPartParameterInline, ]