mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 11:45:31 +00:00
Refactor some more forms
This commit is contained in:
@ -65,20 +65,9 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
|
||||
|
||||
void editCompany(BuildContext context) async {
|
||||
|
||||
launchApiForm(
|
||||
company.editForm(
|
||||
context,
|
||||
L10().companyEdit,
|
||||
company.url,
|
||||
{
|
||||
"name": {},
|
||||
"description": {},
|
||||
"website": {},
|
||||
"is_supplier": {},
|
||||
"is_manufacturer": {},
|
||||
"is_customer": {},
|
||||
"currency": {},
|
||||
},
|
||||
modelData: company.jsondata,
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user