account_merge_wizard_lines_one2many
Merging duplicate accounts means reading groups of candidates and ticking the ones to keep. This widget is the sectioned list that makes those groups legible, down to keeping one column deliberately visible.
| Technical name | account_merge_wizard_lines_one2many |
|---|---|
| Field types | one2many |
| Views | form, with an embedded list |
| Module | account, present wherever Invoicing or Accounting is installed |
| Used in core | 1 occurrence, the merge accounts wizard in account |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0 |
| No-code setup | No. It is a bespoke wizard list tied to the merge candidate model |
| Alternatives | one2many, section_one2many, so_template_line_o2m, question_page_one2many |
What the merge wizard list does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
subsections | boolean | Inherited from the section list. Enables a second level of section nesting. Not used by the merge wizard.(default: false) |
hide_prices | boolean | Inherited, and read in the base extractor without being declared. Hides price columns, which the merge wizard has none of.(default: false) |
hide_composition | boolean | Inherited and undeclared in the same way. Hides composition display on lines.(default: false) |
aggregated_fields | string (attribute) | Inherited. Comma-separated list of fields to aggregate on section rows, written as an attribute on the field element. |
Two behaviors are hardcoded. The title field is set to info in the renderer's setup, and the selection column that stays visible on section rows is named literally. Both are written for the merge wizard's model, so the widget is not portable to a differently shaped list.
Working examples
A hidden column deliberately un-hidden
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. One internal method is renamed on the development branch; behavior is unchanged. |
| Odoo 19.0 | Verified | Verified against the shipped source. Unchanged in substance from Odoo 18. |
| Odoo 18.0 | Verified | First version. |
| Odoo 17.0 | Not available | Widget does not exist. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. The widget is new in Odoo 18 and unchanged in substance in Odoo 19, so nothing needs attention there. Going to Odoo 20, the section column method is renamed in line with the shared base; that matters only to custom code that overrode it.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Group headings do not line up with the accounts | The selection column was removed or renamed, so the alignment fix has nothing to keep visible. Keep the selection field in the embedded list under its expected name. |
| Sections render as ordinary rows | The rows do not carry the display type the shared section list looks for. Make the server-side computation set the display type on group heading rows. |
| Clicking a column header does nothing | Intended. Sorting is disabled on every column. Nothing to fix; sorting would scatter the groups. |
| The section title is blank | The embedded list does not include the field the renderer uses as its title column. Include that field in the list. |
| A custom override stopped working on Odoo 20 | The method that selects section columns is renamed on the development branch. Override the new method name. |
| Missing widget error | The accounting module is not installed in that database. Install Invoicing or Accounting. |
Merge wizard list vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
account_merge_wizard_lines_one2many | Reviewing grouped duplicate accounts before merging them | Section list whose group rows keep the selection column visible so headings align with the rows below |
| one2many | An ordinary embedded list | No sections, no alignment handling and sorting still works |
| section_one2many | Generic sectioned relations | The shared base, without the merge wizard's specific adjustments |
| so_template_line_o2m | Quotation templates with optional sections | Another descendant of the same base, with quantity bookkeeping instead |
| question_page_one2many | Sectioned survey questions | A different section renderer with a forced parent save |
Frequently asked questions
What does the merge wizard list widget do differently?+
Why can I not sort the list?+
Does it support any options?+
Can I reuse it on another list?+
Does anything change in Odoo 20?+
A chart of accounts nobody wants to touch
Duplicate accounts, inconsistent codes and localization overlaps make every report a negotiation. We clean up and restructure charts of accounts on live Odoo databases, on versions 16 through 19, without losing history.
Book a free consultation