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.warehouse.flow

Compute Method: _compute_impacted_route_ids

View 17.0
Inputs Method Outputs
  • from_picking_type_id
  • from_picking_type_id.id
- for flow in self:
-             rules = self.env["stock.rule"].search(
-                 [
-                     ("picking_type_id", "=", flow.from_picking_type_id.id),
-                     ("route_id.flow_id", "=", False),
-                 ]
-             )
-             flow.impacted_route_ids = rules.route_id
  • impacted_route_ids

Back to entity