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

Create a new stock location

This commit is contained in:
Oliver
2021-08-10 17:21:12 +10:00
parent 0d11af002b
commit 76c0ab3d7f
3 changed files with 51 additions and 9 deletions

View File

@ -548,6 +548,15 @@ class InvenTreeStockLocation extends InvenTreeModel {
String get pathstring => jsondata['pathstring'] ?? '';
@override
Map<String, dynamic> formFields() {
return {
"name": {},
"description": {},
"parent": {},
};
}
String get parentpathstring {
// TODO - Drive the refactor tractor through this
List<String> psplit = pathstring.split('/');