section_and_note_text
On sale orders and invoices, one widget decides how the description cell edits: section_and_note_text, a tiny dispatcher that reads the line's display_type. The Odoo 20 branch removes it.
| Technical name | section_and_note_text |
|---|---|
| Field types | char, text (the description column of order and invoice lines) |
| Views | list (inside section_and_note_one2many line grids), form |
| Also registered as | list.section_and_note_text, using the list text component for non-section rows |
| Module | account, installed with Invoicing or Accounting |
| Used in core | 6 occurrences across account, l10n_in, sale_management, purchase |
| Versions | Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | No. It is wired in the line views of quotations, orders and invoices; Studio does not expose it |
| Alternatives | product_label_section_and_note_field, text, char |
What the Section and Note Text field does
What this means for your team
Working examples
This widget versus section_and_note_one2many
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. The widget and its registrations are removed on the current development branch; see below. |
| Odoo 19.0 | Verified | Verified against the shipped source; the file also gains subsections machinery for the companion widget. |
| Odoo 18.0 | Verified | Widget present with the same dispatch logic. |
| Odoo 17.0 | Verified | Widget present with the same dispatch logic. |
| Odoo 16.0 | Verified | Widget present; a parallel legacy implementation also shipped for the old view engine. |
Upgrade note. From 16.0 through 19.0 the widget is a stable passenger of the account module (16.0 even shipped a parallel legacy implementation for the old view engine). Views reference it by name only, so upgrades within that range are uneventful. The development branch is another story, below.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Section titles open a multiline editor | The row's display_type is not exactly line_section, or the column uses the plain text widget. Check the widget on the name field and the display_type values in the data. |
| Notes are squeezed to a single line | The column renders the plain char widget instead of this dispatcher. Set widget="section_and_note_text" on the description field of the line grid. |
| Section rows do not span the table | Column spanning is the renderer's job, driven by the parent field's widget. Ensure the one2many field itself uses section_and_note_one2many; this cell widget cannot produce colspans. |
| Widget used on a model without display_type does nothing special | The dispatcher reads record.data.display_type; when the field is absent the check is never true. Expected: every row gets the multiline editor. Add a display_type selection to the model if you want section behavior. |
| After testing on the Odoo 20 branch, the widget is unknown | The registrations are removed on master. Plan custom views around the default text widget or the product label field widget when preparing an Odoo 20 migration. |
Section and Note Text field vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
section_and_note_text | Description cells in section-aware line grids | Switches char versus text editing per row type at render time |
product_label_section_and_note_field | The combined product and label column on modern invoice lines | A many2one-based composite that carries the section logic forward, extended on the Odoo 20 branch |
| text | Plain multiline descriptions everywhere | Always multiline, no row-type awareness |
char | Single-line text without dispatch | Always one line, regardless of row type |
Frequently asked questions
What does section_and_note_text do on Odoo order lines?+
How do I add sections and notes to my own one2many?+
Why doesn't the widget have any options?+
What are subsections in Odoo 19?+
Is section_and_note_text removed in Odoo 20?+
Which apps use this widget in core?+
Quotes that read like part lists instead of proposals?
Sections, notes, subtotals and collapsible phases turn Odoo quotations into documents clients actually sign. We structure order and invoice line views, and keep customizations like these survivable across releases, including the widget removal already visible for Odoo 20.
Book a free consultation