> 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

[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 **Alert sources** --> **Alert sources** and click on **Create new alert source**

   <figure><img src="/files/rmL9OoRxcWnDwcJZQm4Y" alt=""><figcaption></figcaption></figure>
2. Search for **Odoo** in the search field, click on the Odoo tile and click on **Next**.

   <figure><img src="/files/1WoRRYB5U40PbeMJ7Hit" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="/files/y4Bakf2apGhBN56U8ZPR" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](/alerting/configure-alerting/alert-sources.md#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.

   <figure><img src="/files/nTlB0ZCIW1SP3dj6P9nO" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings such as custom alert templates or notification priority. Click on **Finish setup** for now.
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="/files/4YwkLIbniuFLiy0fcka6" 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="/files/Um4QCSbE6SLZoum8VYdo" 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="/files/JBQTCnZAxxqLntHKAwtL" alt=""><figcaption></figcaption></figure>
2. Go to **Automations** and click **New**.

   <figure><img src="/files/ZBDgM8Ddc2ye6i2eDLj7" 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="/files/FDWgKK1t65A4aB2nsRsU" 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="/files/L2uSXt0YxMErBI59TZ84" 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="/files/InBQm4mDN4NDgxEqgJCa" 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="/files/BrFzbwuxvfzkrLflhQgT" 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="/files/fUwlwl9XEDFrqj6pYwoF" 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.
