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

Module: Sales - Project

Entity: sale.order

Compute Method: _compute_is_product_milestone

Inputs Method Outputs
  • order_line
  • order_line.product_id
for order in self:
            order.is_product_milestone = order.order_line.product_id.filtered(lambda p: p.service_policy == 'delivered_milestones')

Back to entity