mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 00:06:16 +00:00
New approach for multiple annotations
- Use the django-sql-utils addon - https://github.com/martsberger/django-sql-utils - The "distinct=True" flag was not doing what I thought it was doing...
This commit is contained in:
1 parent
2667dc68d7
commit
42967905bc
4 files changed
+44
-17
No files matched your search
@@ -122,6 +122,9 @@ function loadPartVariantTable(table, partId, options) {
|
||||
{
|
||||
field: 'in_stock',
|
||||
title: '{% trans "Stock" %}',
|
||||
formatter: function(value, row) {
|
||||
return renderLink(value, `/part/${row.pk}/stock/`);
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user