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

View 17.0
Inputs Method Outputs
  • warehouse_from_id
  • warehouse_from_id.lot_stock_id
  • warehouse_to_id
  • warehouse_to_id.lot_stock_id
- 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
  • location_id
  • location_dest_id

Back to entity