base_automation_actions_one2many
A rule's actions shown as one horizontal strip that measures itself against the available width and hides what does not fit behind an and 3 more counter.
| Technical name | base_automation_actions_one2many |
|---|---|
| Field types | one2many |
| Views | form |
| Module | base_automation, the Automation Rules app |
| Used in core | 1 occurrence, the actions column on the automation rule form in base_automation |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0 |
| No-code setup | No. It is part of the automation rules interface itself |
| Alternatives | one2many, x2many_buttons, many2many_tags, base_automation_trigger_selection |
What the automation actions strip does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
name | related field on the action | Injected by the registration. Used as each action's label in the strip. From Odoo 19 this is what the user sees, rather than a label derived from the action type. |
state | related field on the action | Injected by the registration. The action's type, used by the template. |
The measurement is not configurable. The width reserved for the counter is a fixed number in the source, and there is no option to change how many actions are shown or to disable the collapsing. The two related fields it injects are likewise fixed.
Working examples
Measuring properly, twice over
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Same behavior on the development branch; rendering and listener helpers change. |
| Odoo 19.0 | Verified | Verified against the shipped source. Each action is labelled with its own name. |
| Odoo 18.0 | Verified | Same layout and measuring, but actions were labelled from a fixed action type map. |
| Odoo 17.0 | Verified | First version. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. No view change is needed. The visible difference between Odoo 18 and Odoo 19 is what each action is labelled with: Odoo 18 printed a friendly label derived from the action type, Odoo 19 prints the action's own name. Rules whose actions were left with default names will read less clearly after an upgrade, which is worth a quick pass over existing rules.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Everything is hidden behind the counter | The container has no usable width, so nothing fits. Give the field a full width class, as the core view does. |
| The strip does not adapt when I resize | The resize handler is throttled and only re-renders when the hidden count changes. Expected. A resize that does not change what fits produces no visible change. |
| Actions show unhelpful names | From Odoo 19 the label is the action's own name field, not a label derived from its type. Rename the actions on the rule; the names are now what readers see. |
| One action too many is hidden | Space is reserved for the counter before deciding what fits. Expected. The reservation is a fixed value in the source with no option. |
| Options are ignored | The registration provides only a component and two related fields, with no extractor. Nothing to configure here. |
| Missing widget error | The base automation module is not installed in that database. Install Automation Rules, or use a plain one2many. |
Automation actions strip vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
base_automation_actions_one2many | Showing a relation as a one line summary that adapts to the available width | Measures real element widths after rendering and collapses the overflow into a counter |
| one2many | Editing the related records | A full vertical list, with no measuring and no collapsing |
| x2many_buttons | A compact relation rendered as buttons | Fixed layout with no overflow handling |
| many2many_tags | A relation shown as tags | Wraps onto more lines instead of collapsing |
| base_automation_trigger_selection | The rule's trigger | The other half of the same form, a grouped selection rather than a relation |
Frequently asked questions
How does the widget decide what to hide?+
Why does it measure instead of truncating at a fixed count?+
Why do my actions have unhelpful labels?+
Does it support any options?+
Can I use it on another relation?+
Automations you can read at a glance
A rule nobody can summarize is a rule nobody dares change. We build and document Odoo automations, and the reporting around them, so the logic stays visible on versions 16 through 19.
Book a free consultation