2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 20:25:26 +00:00

Refactor part form fields

This commit is contained in:
Oliver
2021-08-10 16:48:06 +10:00
parent 6d0282519d
commit a1a07aefd8
3 changed files with 34 additions and 31 deletions

View File

@ -137,6 +137,32 @@ class InvenTreePart extends InvenTreeModel {
@override
String get URL => "part/";
@override
Map<String, dynamic> formFields() {
return {
"name": {},
"description": {},
"IPN": {},
"revision": {},
"keywords": {},
"link": {},
// Parent category
"category": {
},
// Checkbox fields
"active": {},
"assembly": {},
"component": {},
"purchaseable": {},
"salable": {},
"trackable": {},
"is_template": {},
"virtual": {},
};
}
@override
Map<String, String> defaultListFilters() {
return {