mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Configurable GET and LIST filters per model type
This commit is contained in:
parent
fb1fb799d2
commit
59d2b9cf1a
5 changed files with 68 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue