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

Module: Point of Sale

Entity: pos.order

Compute Method: _compute_picking_count

View 19.0
Inputs Method Outputs
  • picking_ids
- for order in self:
-             order.picking_count = len(order.picking_ids)
-             order.failed_pickings = bool(order.picking_ids.filtered(lambda p: p.state != 'done'))
  • picking_count
  • failed_pickings

Back to entity