Fix for stock item tracking table

This commit is contained in:
Oliver Walters 2021-02-28 20:50:19 +11:00
parent 3dad86f004
commit 04dbfbd892
2 changed files with 4 additions and 8 deletions

View File

@ -52,12 +52,10 @@
loadStockTrackingTable($("#track-table"), { loadStockTrackingTable($("#track-table"), {
params: function(p) { params: {
return {
ordering: '-date', ordering: '-date',
item: {{ item.pk }}, item: {{ item.pk }},
user_detail: true, user_detail: true,
};
}, },
url: "{% url 'api-stock-track' %}", url: "{% url 'api-stock-track' %}",
}); });

View File

@ -932,7 +932,6 @@ function loadStockTrackingTable(table, options) {
cols.push({ cols.push({
field: 'title', field: 'title',
title: '{% trans "Description" %}', title: '{% trans "Description" %}',
sortable: true,
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
var html = "<b>" + value + "</b>"; var html = "<b>" + value + "</b>";
@ -957,7 +956,6 @@ function loadStockTrackingTable(table, options) {
}); });
cols.push({ cols.push({
sortable: true,
field: 'user', field: 'user',
title: '{% trans "User" %}', title: '{% trans "User" %}',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {