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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue