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

Module: Inventory

Entity: stock.move

Compute Method: _compute_picked

View 18.0 View 20.0
Inputs Method Outputs
  • state
  • move_line_ids
for move in self:
            if move.state == 'done' or any(ml.picked for ml in move.move_line_ids):
                move.picked = True
-             else:
+             elif move.move_line_ids:
                move.picked = False
  • picked

Back to entity