Search for implicit locations of type storage when generating internal shipment
The provisioning and overflow locations are only meaningful on storage locations.
This commit is contained in:
@@ -66,6 +66,7 @@ class ShipmentInternal(ModelSQL, ModelView):
|
||||
implicit_locations = Location.search(['OR',
|
||||
('provisioning_location', '!=', None),
|
||||
('overflowing_location', '!=', None),
|
||||
('type', '=', 'storage'),
|
||||
])
|
||||
id2location.update({l.id: l for l in implicit_locations})
|
||||
location_ids = list(id2location.keys())
|
||||
|
||||
Reference in New Issue
Block a user