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_from_location_src_id

View 17.0
Inputs Method Outputs
  • from_picking_type_id
  • from_picking_type_id.default_location_src_id
- for record in self:
-             location = record.from_picking_type_id.default_location_src_id
-             if not location:
-                 __, location = self.env["stock.warehouse"]._get_partner_locations()
-             record.from_location_src_id = location
  • from_location_src_id

Back to entity