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

@ -6,6 +6,17 @@ class InvenTreeStockItem extends InvenTreeModel {
@override
String URL = "stock/";
@override
Map<String, String> defaultGetFilters() {
var headers = new Map<String, String>();
headers["part_detail"] = "true";
headers["location_detail"] = "true";
return headers;
}
InvenTreeStockItem() : super();
InvenTreeStockItem.fromJson(Map<String, dynamic> json) : super.fromJson(json) {