disable ordering on category

This commit is contained in:
Matthias 2021-08-20 22:52:57 +02:00
parent 109b8c943e
commit 5a59a37a89
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

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