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

Module: Sales

Entity: sale.order.template

Compute Method: _compute_has_productless_lines

Inputs Method Outputs
for template in self:
            template.has_productless_lines = any(
                not (line.product_id or line.display_type)
                for line in template.sale_order_template_line_ids
            )

Back to entity