2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-07-13 09:01:19 +00:00

Fix URL getters

This commit is contained in:
Oliver
2021-08-09 07:51:46 +10:00
parent beeea794cb
commit 2dfe8921eb
7 changed files with 10 additions and 35 deletions

View File

@ -18,7 +18,7 @@ class InvenTreeStockItemTestResult extends InvenTreeModel {
String NAME = "StockItemTestResult";
@override
String URL = "stock/test/";
String get URL => "stock/test/";
String get key => jsondata['key'] ?? '';
@ -103,7 +103,7 @@ class InvenTreeStockItem extends InvenTreeModel {
String NAME = "StockItem";
@override
String URL = "stock/";
String get URL => "stock/";
@override
String WEB_URL = "stock/item/";
@ -540,7 +540,7 @@ class InvenTreeStockLocation extends InvenTreeModel {
String NAME = "StockLocation";
@override
String URL = "stock/location/";
String get URL => "stock/location/";
String get pathstring => jsondata['pathstring'] ?? '';