Fix ?display= URLs for part stock view

This commit is contained in:
Oliver 2021-09-27 11:41:24 +10:00
parent b3c8bd7779
commit beaa93f9b5
3 changed files with 3 additions and 3 deletions

View File

@ -271,7 +271,7 @@ function loadBomTable(table, options) {
sortable: true, sortable: true,
formatter: function(value, row) { formatter: function(value, row) {
var url = `/part/${row.sub_part_detail.pk}/?display=stock`; var url = `/part/${row.sub_part_detail.pk}/?display=part-stock`;
var text = value; var text = value;
if (value == null || value <= 0) { if (value == null || value <= 0) {

View File

@ -539,7 +539,7 @@ function loadPartVariantTable(table, partId, options={}) {
field: 'in_stock', field: 'in_stock',
title: '{% trans "Stock" %}', title: '{% trans "Stock" %}',
formatter: function(value, row) { formatter: function(value, row) {
return renderLink(value, `/part/${row.pk}/?display=stock`); return renderLink(value, `/part/${row.pk}/?display=part-stock`);
} }
} }
]; ];

View File

@ -1019,7 +1019,7 @@ function loadStockTable(table, options) {
return '-'; return '-';
} }
var link = `/supplier-part/${row.supplier_part}/?display=stock`; var link = `/supplier-part/${row.supplier_part}/?display=part-stock`;
var text = ''; var text = '';