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

Module: Stock Warehouse Flow

Entity: stock.route

Compute Method: _compute_applicable_flow_ids

Inputs Method Outputs
  • rule_ids
  • rule_ids.picking_type_id
for route in self:
            picking_types = route.rule_ids.picking_type_id
            route.applicable_flow_ids = self.env["stock.warehouse.flow"].search(
                [
                    ("from_picking_type_id", "in", picking_types.ids),
                ]
            )

Back to entity