2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 03:35:28 +00:00
- Disable "suppliers" detail window (for now)
This commit is contained in:
Oliver
2021-08-05 09:42:36 +10:00
parent acecec113e
commit beeea794cb
4 changed files with 17 additions and 6 deletions

View File

@ -51,8 +51,7 @@ class InvenTreeSupplierPart extends InvenTreeModel {
@override
String URL = "company/part/";
@override
Map<String, String> defaultListFilters() {
Map<String, String> _filters() {
return {
"manufacturer_detail": "true",
"supplier_detail": "true",
@ -60,6 +59,16 @@ class InvenTreeSupplierPart extends InvenTreeModel {
};
}
@override
Map<String, String> defaultListFilters() {
return _filters();
}
@override
Map<String, String> defaultGetFilters() {
return _filters();
}
InvenTreeSupplierPart() : super();
InvenTreeSupplierPart.fromJson(Map<String, dynamic> json) : super.fromJson(json);

View File

@ -274,14 +274,16 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
tiles.add(
ListTile(
title: Text(L10().suppliers),
leading: FaIcon(FontAwesomeIcons.industry, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.industry),
trailing: Text("${part.supplierCount}"),
/* TODO:
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => PartSupplierWidget(part))
);
},
*/
)
);