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

Compute Method: _compute_section_qty

Inputs Method Outputs
for line in self:
            if line.display_type in {"line_section", "line_subsection"}:
                line.section_qty = 1.0
            else:
                line.section_qty = False

Back to entity