mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Set default location for part
- Used as "default" when creating new StockItem for that part
This commit is contained in:
@ -400,6 +400,12 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
|
||||
fields["part"]["hidden"] = true;
|
||||
|
||||
int? default_location = part.defaultLocation;
|
||||
|
||||
if (default_location != null) {
|
||||
fields["location"]["value"] = default_location;
|
||||
}
|
||||
|
||||
InvenTreeStockItem().createForm(
|
||||
context,
|
||||
L10().stockItemCreate,
|
||||
|
Reference in New Issue
Block a user