account_type_selection
The Type dropdown on an Odoo account is not a flat list. The account_type_selection widget buckets every account type under Balance Sheet and Profit & Loss headings so accountants pick from a structured tree instead of a 15 item flat list.
August 24, 2026Updated August 24, 20265 min read
| Technical name | account_type_selection |
|---|---|
| Field types | selection (many2one also accepted through the base selection widget) |
| Views | form, list |
| Module | account |
| Used in core | 3 occurrences across 1 module: the account form and the chart of accounts list in account |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | No. Applied via the widget attribute in view XML |
| Alternatives | selection, radio, selection_badge |
What the Account Type selector does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
placeholder_field | field name | Inherited from the base selection widget, which declares it as a Studio visible option, but the base widget's extractProps never reads it, so setting it has no effect here either. A plain placeholder attribute on the field works instead.(since Odoo 19.0) |
Grouping is hardcoded in the component. There is no option to rename sections, reorder groups, or register additional prefixes; any of that requires overriding the component and its template.
Working examples
How the grouping is built, and what changed in Odoo 19
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. The development branch file is byte-identical to 19.0 at the time of writing; see below. |
| Odoo 19.0 | Verified | Verified against the shipped source. SelectMenu rewrite with real section headers. |
| Odoo 18.0 | Verified | Native select with optgroup style hierarchy via the hierarchyOptions getter. |
| Odoo 17.0 | Verified | Same native select implementation as 18.0. |
| Odoo 16.0 | Verified | Same hierarchy getter; the Other group matched only the exact value off_balance. |
The widget exists unchanged in name and purpose since Odoo 16. Upgrades are safe; only the rendering technology changed in 19.0, from a native select with optgroups to the SelectMenu component.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| A custom account type value does not appear in the dropdown | The widget buckets choices by value prefix. A selection key that does not start with asset, liability, equity, income, expense or off_balance is filtered out of every group. Name custom selection keys with one of the six recognized prefixes, for example asset_custom, or drop the widget attribute to fall back to the flat selection dropdown. |
| The dropdown shows a flat list without Balance Sheet and Profit and Loss headers | The field is rendered by the plain selection widget, not account_type_selection. This happens on custom views that forgot the widget attribute. Add widget="account_type_selection" to the field element in the view XML. |
| Saved accounts show a type that cannot be selected manually | The value was written by an import or by code. The ORM accepts any valid selection key even when the widget cannot display it in a group. Fix the key naming so the prefix matches a group, or correct the imported values with a server action. |
Account Type selector vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
account_type_selection | The account Type dropdown on the chart of accounts | Buckets choices under Balance Sheet and Profit and Loss headers by value prefix |
| selection | Any ordinary selection field | Flat dropdown, no sections, no prefix filtering surprises |
| radio | Short selections where all choices should be visible at once | Renders every choice as a radio button instead of a dropdown |
| selection_badge | Selections styled as clickable badges | Inline badge buttons, better for two to five choices |
Frequently asked questions
Which field uses account_type_selection in Odoo?+
Can I add my own group or section to the dropdown?+
Why does my custom account type not show up in the Type dropdown?+
Does account_type_selection work on other models?+
Chart of accounts setup slowing your close down?
Wrong account types ripple into every report: balance sheets that do not balance and P&L lines in the wrong place. We restructure charts of accounts, fix imported account types in bulk, and localize Odoo accounting for your country, on Odoo 16 through 19.
Talk to an Odoo accounting expert