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

Module: Sales - Service

Entity: sale.order.line

Compute Method: _compute_is_service

View 17.0 View 19.0
Inputs Method Outputs
  • product_id
  • product_id.type
+ self.fetch(['is_service', 'product_id'])
+ self.product_id.fetch(['type'])
for so_line in self:
            so_line.is_service = so_line.product_id.type == 'service'
  • is_service

Back to entity