2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +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:
Oliver Walters
2020-09-05 22:35:19 +10:00
parent 2667dc68d7
commit 42967905bc
4 changed files with 44 additions and 17 deletions

View File

@ -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/`);
}
}
];