mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Stupid async
This commit is contained in:
parent
de4acbe005
commit
16f4f7195c
2 changed files with 15 additions and 6 deletions
|
|
@ -144,7 +144,16 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
data["notes"] = notes;
|
||||
}
|
||||
|
||||
InvenTreeStockItemTestResult().create(context, data);
|
||||
|
||||
bool _result = false;
|
||||
|
||||
await InvenTreeStockItemTestResult().create(context, data).then((InvenTreeModel model) {
|
||||
|
||||
_result = model != null && model is InvenTreeStockItemTestResult;
|
||||
|
||||
});
|
||||
|
||||
return _result;
|
||||
}
|
||||
|
||||
int get partId => jsondata['part'] ?? -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue