This module adds a stored Section field on sale order lines.
In standard Odoo, the relation between a line and its section is only implicit: a line belongs to the nearest previous section according to the order sequence. This is inconvenient for domains, grouping, reporting, or custom business logic because there is no direct field to use.
With this module, each non-section sale order line is linked to its nearest previous section line.
Typical use cases include:
- grouping sale order lines by section in tree views, exports, or reports;
- filtering all lines that belong to a given section without recomputing the relation from the sequence;
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds a stored "Section" field on each sale order line, automatically linking every product line to the section line above it. This makes it easy to group, filter and report sale order lines by section.
In standard Odoo, a sale order line only belongs to a section because of its position in the list; there is no field to use in filters, groupings or reports. This module fixes that by adding a stored "Section" field on every sale order line.
- Each normal product line is automatically linked to the nearest section line placed above it in the same sale order.
- Section lines themselves have no section, so the field stays empty for them.
- The link is recalculated automatically whenever the order, the line type or the line order changes, so it always follows the current layout of the order.
On the sale order form, the new field appears in the order lines list, hidden by default, and can be shown with the optional columns selector. It is read-only, so users cannot change it by hand.
Because the value is stored and indexed, it can be used in list views, groupings, filters, exports and reports to find all lines belonging to a given section without recalculating the relation from the line order. The module only touches sale.order.line and the sale order form view, and it depends on the standard Sales app.
Depends on
Models and fields (1)
- sale.order.line · extends an existing modelsection_id (Section)
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/sale-workflow.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.