From dfa4d3f8ed6800127eef3fd667add65c21793fe9 Mon Sep 17 00:00:00 2001 From: eeintech Date: Sun, 18 Oct 2020 14:37:35 -0500 Subject: [PATCH] Display IPN and pipe char only if IPN exists --- InvenTree/company/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index e9bb3f69d2..f1e249fd58 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -427,8 +427,9 @@ class SupplierPart(models.Model): if self.part.IPN: s += f'{self.part.IPN}' + s += ' | ' - s += f' | {self.supplier.name} | {self.SKU}' + s += f'{self.supplier.name} | {self.SKU}' if self.manufacturer_string: s = s + ' | ' + self.manufacturer_string