mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 18:01:14 +00:00
Include part revision in stock API / table
This commit is contained in:
1 parent
67b53d9983
commit
047d2f2f4c
2 files changed
+6
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user