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.move

Compute Method: _compute_progress

View 18.0
Inputs Method Outputs
  • product_uom_qty
  • state
  • product_uom
  • product_uom.rounding
  • picked
- for move in self:
-             qty = move.product_uom_qty
-             # Done moves or moves with no demanded quantity are considered as 100% done
-             if move.state == "done" or float_is_zero(
-                 qty, precision_rounding=move.product_uom.rounding
-             ):
-                 move.progress = 100
-             # Picked moves' progress is computed using the picked qty
-             elif move.picked:
-                 move.progress = 100 * move._get_picked_quantity() / qty
-             # All other moves have 0% progress
-             else:
-                 move.progress = 0
  • progress

Back to entity