mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
Refactor some more forms
This commit is contained in:
@ -109,17 +109,15 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
|
||||
void _editStockItem(BuildContext context) async {
|
||||
|
||||
launchApiForm(
|
||||
item.editForm(
|
||||
context,
|
||||
L10().editItem,
|
||||
item.url,
|
||||
{
|
||||
fields: {
|
||||
"status": {},
|
||||
"batch": {},
|
||||
"packaging": {},
|
||||
"link": {},
|
||||
},
|
||||
modelData: item.jsondata,
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user