Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Inventory

Entity: stock.lot

Compute Method: _compute_delivery_ids

Inputs Method Outputs
delivery_ids_by_lot = self._find_delivery_ids_by_lot_iterative()
for lot in self:
            lot.delivery_ids = delivery_ids_by_lot.get(lot.id, [])
            lot.delivery_count = len(lot.delivery_ids)

Back to entity