mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Structural categories (#220)
* Add support for editing "structural" tree field - Requires API v83 or newer * Update release notes
This commit is contained in:
parent
30ea893023
commit
d122a352a6
4 changed files with 29 additions and 6 deletions
|
|
@ -652,13 +652,18 @@ class InvenTreeStockLocation extends InvenTreeModel {
|
|||
|
||||
@override
|
||||
Map<String, dynamic> formFields() {
|
||||
return {
|
||||
Map<String, dynamic> fields = {
|
||||
"name": {},
|
||||
"description": {},
|
||||
"parent": {
|
||||
|
||||
},
|
||||
"parent": {},
|
||||
"structural": {},
|
||||
};
|
||||
|
||||
if (!api.supportsStructuralCategories) {
|
||||
fields.remove("structural");
|
||||
}
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
String get parentPathString {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue