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

Module: Stock Inter-Warehouse Transfer

Entity: stock.interwarehouse.transfer

Compute Method: _compute_locations

Inputs Method Outputs
for rec in self:
            if rec.warehouse_from_id:
                rec.location_id = rec.warehouse_from_id.lot_stock_id
            if rec.warehouse_to_id:
                rec.location_dest_id = rec.warehouse_to_id.lot_stock_id

Back to entity