English
Odoo record
Starts the workflow when a record of an Odoo model (lead, invoice, contact…) is created or changed, checking at a regular interval. The record lands in data.odoo, with no triggering email.
The Odoo record trigger checks an Odoo model at regular intervals and starts one run per record created — or changed, depending on the setting — since the previous check. An optional domain narrows what counts.
The run has no triggering email: nodes that act on the triggering email cannot follow this trigger. Send works when you choose the sending mailbox on the node.
At a glance
- Type:
trigger.odoo· version 1 - Category: Triggers
- Kind: Trigger — starts a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: Odoo
- Outputs:
main
Connection
This node needs a Odoo connection.
Parameters
connection
Odoo connection — The Odoo connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
model
Odoo model — The technical name: crm.lead, account.move, res.partner…
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 100 characters at most
- Example:
crm.lead - Expressions:
{{ }}not accepted
event
Trigger on
- Type: One choice (
options) - Required: Yes
- Default:
created - Options:
created— A record createdupdated— A record created or changed
domain
Filter (JSON domain) — Optional, in Odoo’s format: [["move_type", "=", "out_invoice"], ["state", "=", "posted"]].
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 5000 characters at most
- Expressions:
{{ }}not accepted
fields
Fields to read — Technical names separated by commas. Empty = Odoo’s default fields.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 1000 characters at most
- Expressions:
{{ }}not accepted
everyMinutes
Check every (minutes)
- Type: Number (
number) - Required: No
- Default:
15 - Whole number, from 5 to 1440
Outputs
main— Taken once per new item found by a check: each item starts its own run.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.odoo.id }}—string. The Odoo id of the record.{{ data.odoo.model }}—string. The watched model (crm.lead…).{{ data.odoo.changedAt }}—string. The creation or change time (ISO 8601).{{ data.odoo.name }}—string. The record name, when the model has one (with the other fields read).
Example
To welcome each new lead, set Odoo model to crm.lead and Trigger on to “A record created”, then write to {{ data.odoo.email_from }} (a field to list in Fields to read).
Tips
- Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Publishing again keeps the position already reached.
- Cadence. Between 5 and 1,440 minutes. The instance may impose a higher floor; each check uses requests from the connection’s quota.
- Testing. Testing from this trigger really queries Odoo and runs the draft on the most recent items, without ever moving the position.
- Errors. A temporary error leaves the position unchanged and the next check retries. A permanent error (revoked connection, incomplete settings) sends you a notification, once per outage.