> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/odoo.md).

# Odoo Inbound Integration

Create alerts in ilert from Odoo Helpdesk tickets — with ilert's Odoo inbound integration

[Odoo](https://www.odoo.com/) is an open-source suite of business apps covering CRM, sales, projects, inventory, accounting and — with the Helpdesk app — customer support ticketing. Odoo's automation rules can react to record changes and call out to external systems via webhooks. With this integration, tickets raised in Odoo Helpdesk automatically create alerts in ilert, so the right responders are notified and escalations happen reliably.

## In ilert: Create an Odoo alert source <a href="#create-alert-source" id="create-alert-source"></a>

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **Odoo**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert generates an **Odoo URL** for your alert source. Copy it — you will need it in the next section.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-e987be3744506f5e5b366513c0071726814e21fc%2Fodoo-url.png?alt=media" alt=""><figcaption></figcaption></figure>

## In Odoo: Install Studio <a href="#install-studio" id="install-studio"></a>

Webhook actions and custom fields are configured with Odoo **Studio**. If it is not installed yet, go to **Apps**, search for `studio` and install the **Studio** (`web_studio`) module.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-430f8bd7959ec904c52f7c772c65893318181b63%2Fodoo-install-studio.png?alt=media" alt=""><figcaption></figcaption></figure>

## In Odoo: Send tickets to ilert <a href="#send-webhook" id="send-webhook"></a>

1. Open the **Helpdesk** app and click the wrench icon (🛠) in the top right to enter Studio.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-672f35089b8039ba5198046598f0dc2dc030595c%2Fodoo-open-automation-rule.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Go to **Automations** and click **New**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-5ae24defdf9124ead96f86c06454b2e9bb214a6e%2Fodoo-automation-rule.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Give the rule a name, keep **Model** set to **Helpdesk Ticket**, choose a **Trigger** — for example **On create and edit** — and adjust the remaining settings, such as the domains under **Apply on**, if you only want certain tickets to reach ilert.
4. Under **Actions To Do**, click **Add an action** and choose the type **Send Webhook Notification**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-e31f322a243bd1c927048522556ba30701b1c28c%2Fodoo-automation-rule-setting.png?alt=media" alt=""><figcaption></figcaption></figure>
5. In the **URL** field, paste the **Odoo URL** that you copied from ilert.
6. In **Fields**, select the ticket fields that should be sent to ilert — for example subject, description, stage, priority, assignee and customer. The **Sample Payload** on the right shows what Odoo will post. Click **Save**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-11b3a8de693d288506fb6873906334d3b38a84d0%2Fodoo-webhook-action.png?alt=media" alt=""><figcaption></figcaption></figure>

That's it — tickets matching the rule now create alerts in ilert.

## In Odoo: Add the ticket URL to the payload (optional) <a href="#add-url-field" id="add-url-field"></a>

The webhook payload contains field values only, so the ticket does not carry an absolute link to itself. If you want the alert in ilert to link back to the Odoo ticket, add a custom field that holds the full URL and fill it with a second automation rule.

1. In Helpdesk leave Studio click on create a new ticket and then go back into studio. Studio's form editor needs an existing ticket to render the form.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-614805bb2eaabb3f5cde3cef6b24bb0900ab1759%2Fodoo-create-ticket.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Open **Views**.
3. Drag a **Text** field onto the form and set its **Label** to `url`. Tick **Invisible** if you do not want to see the field on the ticket — it only needs to exist so it can be sent along with the webhook.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-a7d83d4eb00b000787373bbbda53aab94bfc3b37%2Fodoo-add-url-field.png?alt=media" alt=""><figcaption></figcaption></figure>

   Odoo stores the field under the technical name `x_studio_url`, which is the name used in the code below.
4. Go back to **Automations** and click **New**. Give the rule a name, for example `get url`, and choose the same model and trigger as before.
5. Under **Actions To Do**, click **Add an action**, choose the type **Execute Code**, paste the following code and click **Save**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-55ed4be12ecbe99d9604077014be159b111b1ff6%2Fodoo-execute-code.png?alt=media" alt=""><figcaption></figcaption></figure>

   ```python
   for record in records:
       record.write({
           'x_studio_url': record.get_base_url() + record.access_url
       })
   ```
6. Both rules now show up in the **Automations** list of the Helpdesk Ticket model. Finally, open the webhook rule again and add the `url` field to its **Fields** selection so the link is included in the payload.

## FAQ

#### **Do I need Odoo Studio?**

Yes. The **Send Webhook Notification** action and the custom `url` field are both Studio features. Studio is available in Odoo Online and Odoo.sh plans that include it, as well as in Odoo Enterprise.

#### **Can I connect Odoo with multiple alert sources in ilert?**

Yes. Create an additional automation rule in Odoo for each alert source and point its webhook action at that alert source's Odoo URL.

#### **Can I use models other than Helpdesk Ticket?**

The integration is built around Odoo Helpdesk tickets. Automation rules on other models can post to the same URL, but their fields are not mapped.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/odoo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
