2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

disable ordering on category

This commit is contained in:
Matthias
2021-08-20 22:52:57 +02:00
parent 109b8c943e
commit 5a59a37a89

View File

@ -872,8 +872,7 @@ function loadPartTable(table, url, options={}) {
} }
}); });
columns.push({ col = {
sortable: true,
sortName: 'category', sortName: 'category',
field: 'category_detail', field: 'category_detail',
title: '{% trans "Category" %}', title: '{% trans "Category" %}',
@ -885,7 +884,11 @@ function loadPartTable(table, url, options={}) {
return '{% trans "No category" %}'; return '{% trans "No category" %}';
} }
} }
}); };
if (!options.params.ordering) {
col['sortable'] = true;
};
columns.push(col);
columns.push({ columns.push({
field: 'in_stock', field: 'in_stock',