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

Compute Method: _compute_has_default_product

Inputs Method Outputs
  • product_id
  • order_id
  • order_id.config_id
  • order_id.config_id.default_product_id
for line in self:
            line.has_default_product = line.product_id == line.order_id.config_id.default_product_id

Back to entity