[FIX] stock_location_tray: crash when creating a stock.location from the stock.location.tray.type view

This commit is contained in:
Florent Xicluna
2021-11-16 16:45:54 +01:00
parent 66d0923b1c
commit 05f0ec7c06

View File

@@ -188,6 +188,7 @@ class StockLocation(models.Model):
"posz": posz,
"location_id": location.id,
"company_id": location.company_id.id,
"tray_type_id": False,
}
values.append(subloc_values)
if values: