mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Extract field information from the server
This commit is contained in:
parent
83e29777c2
commit
7291dc9272
2 changed files with 77 additions and 2 deletions
|
|
@ -126,8 +126,7 @@ class InvenTreeModel {
|
|||
}
|
||||
|
||||
// Return the API detail endpoint for this Model object
|
||||
String get url => "${URL}/${pk}/";
|
||||
|
||||
String get url => "${URL}/${pk}/".replaceAll("//", "/");
|
||||
|
||||
// Search this Model type in the database
|
||||
Future<List<InvenTreeModel>> search(BuildContext context, String searchTerm, {Map<String, String> filters = const {}}) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue