Skip to content

Odoo ​

Finds and creates contacts, finds invoices, and reads, creates or updates any Odoo record.

The Odoo node finds and creates contacts, finds invoices, and reads, creates or updates any Odoo record (CRM leads, quotations, tasks…) through the JSON-2 external API.

See Odoo to create the connection.

At a glance ​

  • Type: odoo.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: Odoo
  • Inputs: main
  • Outputs: main
The ports of “Odoo”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Odoo connection.Odooodoo.apimainmainerror · only with “Follow the Error output”Connection: Odoo
The ports of “Odoo”: what comes in on the left, what goes out on the right

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)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: partner.find
  • Options:
    • partner.find — Find a contact: By email address or by name.
    • partner.create — Create a contact: A person or a company.
    • invoice.find — Find invoices: Customer or vendor, by contact, number and payment state.
    • record.search — Search records: On any model, with an Odoo domain.
    • record.create — Create a record: On any model, with its values as JSON.
    • record.update — Update a record: By its id, with the values to change as JSON.

email ​

Email address

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.address }}
  • Shown when: action is one of partner.find, partner.create
  • Expressions: {{ }} accepted

name ​

Name — Search: part of the name is enough. Creation: required.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 250 characters at most
  • Shown when: action is one of partner.find, partner.create
  • Expressions: {{ }} accepted

isCompany ​

It is a company

  • Type: Yes / no (boolean)
  • Required: No
  • Default: false
  • Shown when: action is partner.create

phone ​

Phone

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 50 characters at most
  • Shown when: action is partner.create
  • Expressions: {{ }} accepted

vat ​

VAT number

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is partner.create
  • Expressions: {{ }} accepted

invoiceKind ​

Invoices

  • Type: One choice (options)
  • Required: No
  • Default: out_invoice
  • Options:
    • out_invoice — Customer
    • in_invoice — Vendor
  • Shown when: action is invoice.find

partnerId ​

Contact (id) — Optional: the id returned by “Find a contact”.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 20 characters at most
  • Shown when: action is invoice.find
  • Expressions: {{ }} accepted

number ​

Number (or part of it)

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is invoice.find
  • Expressions: {{ }} accepted

paymentState ​

Payment state

  • Type: One choice (options)
  • Required: No
  • Default: any
  • Options:
    • any — Any
    • not_paid — Not paid
    • partial — Partially paid
    • paid — Paid
  • Shown when: action is invoice.find

model ​

Odoo model — The technical name: crm.lead, sale.order, project.task…

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 100 characters at most
  • Example: crm.lead
  • Shown when: action is one of record.search, record.create, record.update
  • Expressions: {{ }} accepted

domain ​

Domain (JSON) — The filter in Odoo’s format, e.g. [["email_from", "=ilike", "{{ email.from.address }}"]]. Empty = everything.

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 5000 characters at most
  • Shown when: action is record.search
  • Expressions: {{ }} 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
  • Shown when: action is record.search
  • Expressions: {{ }} accepted

values ​

Values (JSON) — A JSON object of technical fields, e.g. {"name": "{{ email.subject }}", "email_from": "{{ email.from.address }}"}.

  • Type: Long text (text)
  • Required: Yes
  • Default: "" (empty)
  • 20000 characters at most
  • Shown when: action is one of record.create, record.update
  • Expressions: {{ }} accepted

recordId ​

Record id

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 20 characters at most
  • Shown when: action is record.update
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 20
  • Whole number, from 1 to 200
  • Shown when: action is one of partner.find, invoice.find, record.search

Outputs ​

  • main — Taken once the call to Odoo succeeds, whatever the action. An error response from Odoo fails the step instead.

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.<step>.id }} — string. The Odoo id of the record created or found first.
  • {{ data.<step>.found }} — boolean. Searches only: true when at least one record matches.
  • {{ data.<step>.partners }} — array of { id, name, email, phone, vat, isCompany }. Find a contact only.
  • {{ data.<step>.invoices }} — array of { id, number, partnerName, date, dueDate, total, amountDue, paymentState }. Find invoices only.
  • {{ data.<step>.records }} — array of objects. Search records only: the fields as Odoo returns them.
  • {{ data.<step>.simulated }} — boolean. true when the action was described instead of done: in a test run, creations and changes are not sent; reads always go out for real.
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language (with summaryKey and summaryParams).

Operations ​

The node has a single Action parameter (action). Each action calls the Odoo API with the connection’s key.

  • Find a contact (partner.find, the default) by email or part of the name, and Create a contact (partner.create), person or company.
  • Find invoices (invoice.find), customer or vendor, by contact, number and payment state.
  • Search records (record.search) on an Odoo model with a JSON Domain, Create a record (record.create) and Update a record (record.update) with JSON Values.

Example ​

A quote request arrives: the node creates a CRM lead.

text
action  record.create
model   crm.lead
values  {"name": "{{ email.subject }}", "email_from": "{{ email.from.address }}"}

Tips ​

  • Test runs. Reads go out for real in a test run; creations and changes are only described (simulated is true).
  • Amounts and dates. Amounts accept 1234.50 as well as 1 234,50 €; dates 2026-11-15 as well as 15/11/2026. An unreadable value is never guessed.
  • No idempotency in Odoo. Search before creating: a retry after a successful creation creates a duplicate.
  • Technical names. Models and fields use their technical name (crm.lead, email_from), visible in Odoo in developer mode.
  • Errors. integration.unauthorized: the key was refused or revoked, replace it in the connection. integration.rejected: Odoo refused the request (missing field, invalid value), fix the settings. integration.rate_limited and integration.unavailable are retried automatically. An empty required parameter or an unreadable amount fails the step with node_invalid_param, before any call. See Error handling.

Loop & Roll — the workflow builder for email.