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: mrp.production

Compute Method: _compute_move_byproduct_ids

View 17.0 View 20.0
Inputs Method Outputs
  • move_finished_ids
  • product_id
for order in self:
            order.move_byproduct_ids = order.move_finished_ids.filtered(lambda m: m.product_id != order.product_id)
  • move_byproduct_ids

Back to entity