Adds exporter and download button for PurchaseOrder table

This commit is contained in:
Oliver committed 2022-05-12 11:41:25 +10:00
1 parent 465e69c254
commit 1b1f7634b7
4 files changed
+34 -5

No files matched your search

+3 -1
View File
@@ -1394,7 +1394,9 @@ function loadPurchaseOrderTable(table, options) {
filters[key] = options.params[key];
}
setupFilterList('purchaseorder', $(table));
var target = '#filter-list-purchaseorder';
setupFilterList('purchaseorder', $(table), target, {download: true});
$(table).inventreeTable({
url: '{% url "api-po-list" %}',