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

Module: POS - Sales

Entity: pos.order

Compute Method: _count_sale_order

Inputs Method Outputs
  • lines
for order in self:
            order.sale_order_count = len(order.lines.mapped('sale_order_origin_id'))

Back to entity