From 847d946fa44b240045586118931598b0e82ba911 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 20 Jun 2021 17:39:00 +1000 Subject: [PATCH] Bug fixes --- InvenTree/company/api.py | 2 +- InvenTree/templates/js/company.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/company/api.py b/InvenTree/company/api.py index 83aef7531b..3842045bac 100644 --- a/InvenTree/company/api.py +++ b/InvenTree/company/api.py @@ -249,7 +249,7 @@ class SupplierPartList(generics.ListCreateAPIView): params = self.request.query_params kwargs['part_detail'] = str2bool(params.get('part_detail', None)) kwargs['supplier_detail'] = str2bool(params.get('supplier_detail', None)) - kwargs['manufacturer_detail'] = str2bool(self.params.get('manufacturer_detail', None)) + kwargs['manufacturer_detail'] = str2bool(params.get('manufacturer_detail', None)) kwargs['pretty'] = str2bool(params.get('pretty', None)) except AttributeError: pass diff --git a/InvenTree/templates/js/company.js b/InvenTree/templates/js/company.js index be4b707466..c64a2fa062 100644 --- a/InvenTree/templates/js/company.js +++ b/InvenTree/templates/js/company.js @@ -260,7 +260,7 @@ function loadSupplierPartTable(table, url, options) { { sortable: true, field: 'supplier', - title: "{% trans "Supplier" %}", + title: '{% trans "Supplier" %}', formatter: function(value, row, index, field) { if (value) { var name = row.supplier_detail.name; @@ -276,7 +276,7 @@ function loadSupplierPartTable(table, url, options) { { sortable: true, field: 'SKU', - title: "{% trans "Supplier Part" %}", + title: '{% trans "Supplier Part" %}', formatter: function(value, row, index, field) { return renderLink(value, `/supplier-part/${row.pk}/`); }