mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Bug fixes
This commit is contained in:
parent
fa5f155c72
commit
847d946fa4
@ -249,7 +249,7 @@ class SupplierPartList(generics.ListCreateAPIView):
|
|||||||
params = self.request.query_params
|
params = self.request.query_params
|
||||||
kwargs['part_detail'] = str2bool(params.get('part_detail', None))
|
kwargs['part_detail'] = str2bool(params.get('part_detail', None))
|
||||||
kwargs['supplier_detail'] = str2bool(params.get('supplier_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))
|
kwargs['pretty'] = str2bool(params.get('pretty', None))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
@ -260,7 +260,7 @@ function loadSupplierPartTable(table, url, options) {
|
|||||||
{
|
{
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: 'supplier',
|
field: 'supplier',
|
||||||
title: "{% trans "Supplier" %}",
|
title: '{% trans "Supplier" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
if (value) {
|
if (value) {
|
||||||
var name = row.supplier_detail.name;
|
var name = row.supplier_detail.name;
|
||||||
@ -276,7 +276,7 @@ function loadSupplierPartTable(table, url, options) {
|
|||||||
{
|
{
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: 'SKU',
|
field: 'SKU',
|
||||||
title: "{% trans "Supplier Part" %}",
|
title: '{% trans "Supplier Part" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
return renderLink(value, `/supplier-part/${row.pk}/`);
|
return renderLink(value, `/supplier-part/${row.pk}/`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user