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

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

Back to entity