mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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;
|
name += row.part__name;
|
||||||
|
|
||||||
|
if (row.part__revision) {
|
||||||
|
name += " | ";
|
||||||
|
name += row.part__revision;
|
||||||
|
}
|
||||||
|
|
||||||
return imageHoverIcon(row.part__image) + renderLink(name, '/part/' + row.part + '/stock/');
|
return imageHoverIcon(row.part__image) + renderLink(name, '/part/' + row.part + '/stock/');
|
||||||
}
|
}
|
||||||
|
@ -291,6 +291,7 @@ class StockList(generics.ListCreateAPIView):
|
|||||||
'part',
|
'part',
|
||||||
'part__IPN',
|
'part__IPN',
|
||||||
'part__name',
|
'part__name',
|
||||||
|
'part__revision',
|
||||||
'part__description',
|
'part__description',
|
||||||
'part__image',
|
'part__image',
|
||||||
'part__category',
|
'part__category',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user