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

Module: Stock Picking Progress

Entity: stock.picking

Compute Method: _compute_progress

Inputs Method Outputs
  • state
  • move_ids
for picking in self:
            if picking.state == "done" or not (
                moves_progress := picking.move_ids.mapped("progress")
            ):
                picking.progress = 100
            else:
                picking.progress = sum(moves_progress) / len(moves_progress)

Back to entity