2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Update model for StockItem

This commit is contained in:
Oliver Walters
2019-04-17 18:34:21 +10:00
parent 69e8f4f5cc
commit b9b8b5ee12
5 changed files with 136 additions and 82 deletions

View File

@ -78,9 +78,15 @@
searchable: false,
sortable: true,
formatter: function(value, row, index, field) {
return renderLink(value, row.url);
var text = renderLink(value, row.url)
text = text + "<span class='badge'>" + row.status + "</span>";
return text;
}
}
},
{
field: 'notes',
title: 'Notes',
},
],
url: "{% url 'api-stock-list' %}"
});