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

Module: Warehouse Management: Batch Transfer

Entity: stock.picking.batch

Compute Method: _compute_move_ids

View 19.0
Inputs Method Outputs
  • picking_ids
  • picking_ids.move_ids
  • move_ids
- for batch in self:
-             batch.move_ids = batch.picking_ids.move_ids
-             batch.show_check_availability = any(m.state not in ['assigned', 'cancel', 'done'] for m in batch.move_ids)
  • move_ids
  • show_check_availability

Back to entity