chatbot_steps_one2many
The steps list in Odoo's chatbot builder. Saving the whole script after every step sounds heavy-handed until you try building a script without it.
| Technical name | chatbot_steps_one2many |
|---|---|
| Field types | one2many |
| Views | form, with an embedded list |
| Module | im_livechat, Live Chat and chatbots |
| Used in core | 1 occurrence, the chatbot script form in im_livechat |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | No. It is a builder-specific list widget |
| Alternatives | one2many, question_page_one2many, chatbot_triggering_answers_widget, handle |
What the chatbot steps list does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
editable | string (list attribute) | Set on the embedded list. Governs inline editing, independently of the forced save on step creation. |
create | boolean (list attribute) | Set on the embedded list. Turning it off removes the add action and with it the forced save.(default: true) |
delete | boolean (list attribute) | Set on the embedded list. Deletion is untouched by the widget.(default: true) |
Neither behavior is configurable. The forced save on each step and the disabled sorting are both written into the widget, with no option to switch either off. If a screen needs one without the other, it needs its own widget.
Working examples
Saving the script so the next step can reference this one
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | Partial / changed | Not released. Byte-identical to Odoo 19, though the companion answers widget on the step form is removed. |
| Odoo 19.0 | Verified | Verified against the shipped source. Identical to Odoo 18. |
| Odoo 18.0 | Verified | Same forced save and same disabled sorting. |
| Odoo 17.0 | Verified | Same behavior with older component conventions. |
| Odoo 16.0 | Verified | Same behavior with older component conventions. |
Upgrade note. No view change is needed. The widget has existed since Odoo 16 and the Odoo 18 and Odoo 19 files are identical; the earlier versions differ only in component conventions. The companion answers widget on the step form, however, does not survive into the next version, so re-check the step form as a whole.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| The script saves itself while I am building | Intended. Saving a step saves the whole script so the next step can reference it. Expected. There is no option to disable it. |
| Column headers do not sort | Intended. Sorting is switched off on every column so the list stays in sequence order. Reorder with the drag handle instead. |
| Editing an existing step does not save the script | Only the create path is wrapped; the update path is not. Save the form if a later step needs the change. |
| Focus is lost after closing the step dialog | The widget restores it, so a customization has probably overridden the open handler. Keep the focus restoration when overriding. |
| A step cannot reference an earlier one | That step was never saved, which normally cannot happen through this widget. Save the script and reopen the step. |
| Missing widget error | The live chat module is not installed in that database. Install Live Chat, or use a plain child list. |
Chatbot steps list vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
chatbot_steps_one2many | Child lists whose rows reference each other and must stay in sequence | Saves the whole parent after each new child, and disables sorting on every column |
| one2many | Child rows that do not reference each other | Sortable columns and no automatic parent save |
question_page_one2many | The same problem in the Survey app | Also forces a parent save, and adds section rendering |
chatbot_triggering_answers_widget | The answers field on a step | A tags field beside this list, not a list itself |
| handle | Reordering rows | A single column widget rather than a list |
Frequently asked questions
Why does the whole script save when I add a step?+
Why can I not sort the columns?+
Does editing a step also save the script?+
Does it support options?+
Does it change in Odoo 20?+
Chatbot scripts you can build in one sitting
A chatbot only saves work if the script matches how your customers actually ask. We design and build Odoo Live Chat chatbot flows, and the handover rules behind them, on versions 16 through 19.
Book a free consultation