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

Module: Manufacturing

Entity: stock.picking

Compute Method: _compute_mrp_production_ids

View 20.0
Inputs Method Outputs
  • production_ids
+ for picking in self:
+             # hide subcontracting MO from resupply picking
+             mo = picking.production_ids.filtered(lambda mo: mo.picking_type_id.active)
+             picking.production_count = len(mo)
  • production_count

Back to entity