sale_order_line_section

sale_order_line_section
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/19.0/sale_order_line_section
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, santostelmo
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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;

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale.view_order_form
Models touched (1)

New fields (1)
  • section_id Many2one → sale.order.line
    comodel_name='sale.order.line' compute='_compute_section_id' compute_sudo=True index=True store=True string='Section'
Public methods (0)

No public methods.