mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Include part revision in stock API / table
This commit is contained in:
parent
67b53d9983
commit
047d2f2f4c
@ -129,6 +129,11 @@ function loadStockTable(table, options) {
|
||||
}
|
||||
|
||||
name += row.part__name;
|
||||
|
||||
if (row.part__revision) {
|
||||
name += " | ";
|
||||
name += row.part__revision;
|
||||
}
|
||||
|
||||
return imageHoverIcon(row.part__image) + renderLink(name, '/part/' + row.part + '/stock/');
|
||||
}
|
||||
|
@ -291,6 +291,7 @@ class StockList(generics.ListCreateAPIView):
|
||||
'part',
|
||||
'part__IPN',
|
||||
'part__name',
|
||||
'part__revision',
|
||||
'part__description',
|
||||
'part__image',
|
||||
'part__category',
|
||||
|
Loading…
Reference in New Issue
Block a user