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

Compute Method: _compute_picked

View 17.0 View 19.0
Inputs Method Outputs
  • move_id
  • move_id.state
for line in self:
-             if line.move_id.state == 'done':
+             if line.move_id.state == 'done' or self.env.context.get('auto_pick_move_lines'):
                line.picked = True
  • picked

Back to entity