2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 19:25:27 +00:00
This commit is contained in:
Oliver Walters
2020-05-22 23:27:17 +10:00
parent e0a3926772
commit ba0780e265
2 changed files with 15 additions and 6 deletions

View File

@ -25,6 +25,18 @@ class InvenTreeStockItem extends InvenTreeModel {
return headers;
}
@override
Map<String, String> defaultListFilters() {
var headers = new Map<String, String>();
headers["part_detail"] = "true";
headers["location_detail"] = "true";
headers["supplier_detail"] = "true";
return headers;
}
InvenTreeStockItem() : super();
InvenTreeStockItem.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
@ -44,10 +56,6 @@ class InvenTreeStockItem extends InvenTreeModel {
nm = jsondata['part_detail']['full_name'] ?? '';
}
if (nm.isEmpty) {
nm = jsondata['part__name'] ?? '';
}
return nm;
}