Configurable GET and LIST filters per model type

This commit is contained in:
Oliver Walters 2020-04-06 12:35:59 +10:00
parent fb1fb799d2
commit 59d2b9cf1a
5 changed files with 68 additions and 6 deletions

View file

@ -12,6 +12,15 @@ class InvenTreePartCategory extends InvenTreeModel {
@override
String URL = "part/category/";
@override
Map<String, String> defaultListFilters() {
var filters = new Map<String, String>();
filters["active"] = "true";
return filters;
}
String get pathstring => jsondata['pathstring'] ?? '';
String get parentpathstring {