base_automation_trigger_selection
The trigger dropdown on an automation rule, grouped into six headings and filtered against the model you picked. Choose a model with no stage field and the stage triggers are simply not offered.
| Technical name | base_automation_trigger_selection |
|---|---|
| Field types | selection |
| Views | form |
| Module | base_automation, the Automation Rules app |
| Used in core | 1 occurrence, the trigger field 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. The widget is part of the automation rules interface itself |
| Alternatives | selection, dynamic_selection, filterable_selection, base_automation_actions_one2many |
What the automation trigger picker does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
model_is_mail_thread | field dependency | Declared as a dependency, so it is always loaded. When false, the entire email events group is excluded from the dropdown.(since Odoo 19.0) |
placeholder_field | field | Inherited from the selection widget. Shows another field's value as a hint when this one is empty. |
The grouping is fixed in the source. The six groups, their order, their labels and which triggers belong to which are all written into the file. There is no option to add a group, reorder them or move a trigger, so extending the trigger set from a custom module means patching the widget as well as the model.
Working examples
Two filters, one fetch, and a race the next version fixes
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | Partial / changed | Not released. Adds a race guard to the field fetch; grouping and filtering unchanged. |
| Odoo 19.0 | Verified | Verified against the shipped source. Adds the email events group, the create trigger and a renamed group label key. |
| Odoo 18.0 | Verified | Five groups, no email events, and no create trigger in the custom group. |
| Odoo 17.0 | Verified | First version, with the same grouping approach. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. No view change is needed. Odoo 19 added the email events group, added the create trigger to the custom group, and renamed the label key on the group objects. A custom module that patched the group table on Odoo 18 has to be updated for that rename, and should also check whether its triggers now belong in the new group.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| A trigger I expected is missing | The target model has no field the trigger could watch, so it was filtered out. Check the model has the relevant field, for example a stage or a priority. |
| No email triggers offered | The target model is not a message thread, which excludes the whole email group. Expected. Email triggers need a model with a chatter. |
| The deprecated group is not shown | Intended. It only appears when the rule already uses a deprecated trigger. Nothing to fix; existing rules keep working and stay editable. |
| The list is filtered for the wrong model | The model was changed twice quickly and a slow field fetch resolved out of order. Reload the form. The development branch fixes this with a request guard. |
| A custom trigger appears ungrouped or errors | The group table is fixed in the source and does not know the new value. Patch the widget's group table alongside adding the trigger to the model. |
| The dropdown is slow to open after changing the model | The field list is fetched from the server on each model change. Expected once per model; the result is reused until the model changes again. |
Automation trigger picker vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
base_automation_trigger_selection | Choosing an automation trigger without meeting options the model cannot support | Groups triggers under six fixed headings and filters them against the target model's real fields |
| selection | Any ordinary selection field | A flat list with no grouping and no model-aware filtering |
| dynamic_selection | Selections whose values come from the server | Server-sourced values rather than client-side filtering of declared ones |
| filterable_selection | Long lists that need narrowing by the user | Interactive filtering rather than automatic exclusion |
| base_automation_actions_one2many | The actions the rule performs | The other half of the same form, showing actions rather than the trigger |
Frequently asked questions
Why are some triggers missing from the dropdown?+
Where did the email triggers go?+
What is the deprecated group?+
Can I add my own trigger group?+
What changed in Odoo 19?+
Automation rules that survive the person who wrote them
Automated actions are the fastest way to encode a process and the fastest way to create one nobody understands. We design, document and test Odoo automation so it stays maintainable, on versions 16 through 19.
Book a free consultation