This commit is contained in:
Oscar 2021-09-01 00:48:44 -05:00
parent 34765fc0da
commit 1315beb3ac
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class InternalShipment(metaclass=PoolMeta):
def default_location_storage():
Location = Pool().get('stock.location')
locations = Location.search([('type', '=', 'warehouse')])
return [l.id for l in locations if l.storage_location.id]
return [l.storage_location.id for l in locations if l.storage_location]
@classmethod
def wait(cls, shipments):