> For the complete documentation index, see [llms.txt](https://help.sipgate.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/integrationen-fur-die-sipgate-app/odoo-integration.md). Agents can also search and read this documentation through its [MCP server](https://help.sipgate.de/~gitbook/mcp).

# Odoo integration

This is how you connect the open-source ERP suite Odoo with the sipgate app for contact and call activity synchronization.

Odoo is a fully integrated and customizable open-source suite of business applications. This all-in-one software solution covers many business needs, including CRM, sales, projects, manufacturing, inventory, and accounting. Odoo is designed to meet the needs of businesses of any size and budget.

You can use your Odoo contacts directly in the sipgate app. That way, you always know who's calling and don't have to switch between different tools. sipgate is your phone system, with a telephony app for desktop and mobile.

Connect sipgate and Odoo to benefit from automatic contact synchronization. Any changes or new contacts you add in the sipgate app during or after a call are automatically saved in Odoo. sipgate also updates call activity for your contacts in Odoo. This keeps you up to date and lets you know when you spoke with each of your contacts and what you noted about the conversation.

#### **Integrating Odoo with the sipgate app**

{% stepper %}
{% step %}
**Select the integration**

In the sipgate app, click the gear icon on the left and select "Integrations".

Under “Integrations,” find the “Odoo” entry and click the “Connect to Odoo” button. ![odoo.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-b69ca1a82e09f2644703a7c497c0bec8fc8025bb%2Fodoo.png?alt=media\&token=ca583a18-1e6a-4718-a0f3-a84c1bdd6b1d)
{% endstep %}

{% step %}
**Enter API details**

Enter the required Odoo API key and API URL here.

{% hint style="warning" %}
**Important:** The API key is only included in the Custom plan and must be entered in the format "DATABASE\_NAME:USER\_EMAIL:ODOO\_API\_KEY".\
As an admin, you can find the database name by going to Settings ➔ Developer Tools: [Activate developer mode (with assets)](https://sipgate-gmbh2.odoo.com/odoo/settings?debug=1) Click this, then look at the top right next to the user logo.\
Alternatively, ask the AI assistant for your database name.
{% endhint %}

For example: <sipgate:test@sipgate.de>:API-Key

If you don't host Odoo yourself or have Odoo host it for you, enter the API URL in the format "**https\://\<Meine-Domain>.odoo.com**."
{% endstep %}

{% step %}
**Confirm the connection**

Odoo and the sipgate app are now successfully connected.

{% hint style="info" %}
Depending on the number of contacts to be integrated, it may take a few minutes for them all to appear.
{% endhint %}
{% endstep %}
{% endstepper %}

#### **Find or create an API key in your Odoo account**

In your account, click the user icon at the top right and select **Admin Settings** .

![Odoo1 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-09c75c2c1a50c96bc0c1202d7752710a127c3b5e%2FOdoo1%20Kopie.png?alt=media\&token=0b81797e-b31e-4f5b-a251-6c8dec58410b)

In the window that opens, select the **Account Security** tab, then click the **API Keys** button in the **New API Key**.

![Odoo2 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-bc16c1616b4dfa9b8f7828ef2eede0fb47c5e6cc%2FOdoo2%20Kopie.png?alt=media\&token=de678cb3-5b9e-4b53-ab47-e6378b12e3b6)

Here you can view existing API keys or create a new one using the **New API Key** button.

Please note that you cannot view existing API keys again. You will see a corresponding notice when creating an API key.

![Odoo2a Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-4640d733cc24a1b53e0a8769f131b7a731333fb9%2FOdoo2a%20Kopie.png?alt=media\&token=a4b06922-84a2-4189-b052-16a6750b17f5)

#### **What permissions does the Odoo API user need?**

The Odoo API user needs the following permissions. If any are missing, parts of the integration may fail without an error message:<br>

* Contacts (`res.partner`): read, write, create, unlink (deletion is required for syncing)
* CRM leads (`crm.lead`): read, write, create, unlink — usually via the “Sales / Salesperson” group
* Activities (`mail.activity`): create and write — we create new activities and then close them
* Messages (`mail.message`): write — to update the call log body
* Optional, only if contacts linked to users are to be deleted: `res.users` write + unlink (Administrator permission)

{% hint style="info" %}
If audit trail accounting is enabled in Odoo, Odoo no longer allows the text of a call log to be edited afterward. Any later notes and summaries are then added as additional notes to the contact.
{% endhint %}

#### **How does Click2Dial work with Odoo?**

In the contact/deal, click **Call** next to the phone number. The sipgate app will open and call the number. For the call to work, the phone number should be saved in +49 format without spaces or special characters. If another app opens, set the sipgate app as the default app for TEL in the operating system.\
![OdooAnruf.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-e7f3e0f878cd2f9c7da34581c5e0606a2de2aeee%2FOdooAnruf.png?alt=media\&token=c9725d12-92f1-4f40-81e1-52102b4a33b7)

#### Set up Click2Dial with Odoo WebRTC

Odoo allows you to make calls using its own WebRTC solution.[ Odoo VoIP FAQ](https://www.odoo.com/documentation/18.0/de/applications/productivity/voip.html)\
In Odoo, go to Users ➔ User X ➔ ”**VoIP**”\
**Credentials**:\
**Username**: SIP ID\
**Secret**: SIP password

Sign in. Then click ”Manage Providers” and add a VoIP provider:\
**Name**: sipgate\
**WebSocket**: wss\://sip.sipgate.de\
**PBX server IP**: [sipgate.de](http://sipgate.de)\
**VoIP environment:** “Production”\
Switch back to the user and select “sipgate” as the provider.\
Start the phone and check whether the status is “Available”.\
If it still shows “Demo”, pressing CMD/CTRL+R may help.

![Odoo02.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-a00137860a3ff252828f9da724fa0a40b031660d%2FOdoo02.png?alt=media\&token=b9b722fc-db98-41bf-87c8-52677afcde92)

Switch back to the user and select “sipgate” as the provider.\
Start the phone and check whether the status is “Available”.\
If it still shows “Demo”, pressing CMD/CTRL+R may help.

![Odoo01.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-b9a66f1fdaddd73aa21925475dd1d3d3b6776b14%2FOdoo01.png?alt=media\&token=e0e8c31b-2edc-4c89-b5c7-c93d0f94d572)

#### **How does call logging / syncing notes with Odoo work?**

You can open the notes during a call and write a note.\
You can write a note for up to 10 seconds after the call ends.\
The note is sent to the Odoo contact after a short delay of 2–5 seconds.\
In the sipgate app, go to Settings ➔ Integrations: Call Logging 0s\
\+ Contacts: automatically logs all calls without a note if no note has been added\
Call Logging 5s to 60s\
\+ Contacts: logs only answered calls that last X seconds\
If you don't want calls to voicemail to be logged, we recommend setting the duration to 60s.\
![OdooLog.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-ab6de25466ab00388860df6774eb4d60c92aaba3%2FOdooLog.png?alt=media\&token=c1b4ad83-5e43-4d9d-9199-4f757e1524dd)\\

{% hint style="warning" %}
**Important:** Note that only open deals are suggested when you want to attach notes to deals.
{% endhint %}

#### Errors & Solutions

Error: "Odoo is connected, but contacts are not loading"\\

{% hint style="info" %}
Note: If you have 100,000–400,000 contacts, you may need to wait up to 30 minutes the first time.
{% endhint %}

**Cause:** The user does not have permission to read, write, or create contacts.\
**Solution:** The Odoo administrator can adjust the users' permissions:\
<https://www.odoo.com/documentation/17.0/applications/general/users/access_rights.html>\\

**Error:** "**Invalid credentials**"\
**Cause 1:** The Odoo trial period (14 days) does not allow API access, even if an API key can be created.\
**Solution 1:** Convert the Odoo trial account to a regular account.\
**Analysis 2.1:** [sipgate app](https://workspace.sipgate.com/) Sign in, open the F12 Console (Chrome), connect to Odoo, error: POST <https://integration.sipgate.cloud/users.integrations.create> 400 (Bad Request)\
**Note 2.1:** [mydatabase.odoo.com](http://mydatabase.odoo.com) -> “mydatabase” may, but does not have to, be identical to the database name\
**Cause 2.1:** API key and/or API URL are invalid\
**Solution 2.1:** API key\
**entry**: must be entered in the format "DATABASE\_NAME:USER\_EMAIL:ODOO\_API\_KEY" with no spaces,\
**email address** use the correct address, including @\
**database name**: log in to Odoo as an administrator and click Settings > Developer Tools: Activate Developer Mode (with assets). The database name is now visible at the top right, next to the user logo.\
Or ask the AI assistant for your database name.\
**Cause 2.2:** User permissions are too restrictive\
**Solution 2.2:** Adjust the user's permissions. See the Odoo FAQ [FAQ](https://www.odoo.com/documentation/17.0/applications/general/users/access_rights.html)\
![OdooRechte1.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-1fb30775dba76ff2b5680f1a8e19ebf9aa78e7a9%2FOdooRechte1.png?alt=media\&token=db60d253-3c83-45e3-9067-eb6d23cdb09d)

![OdooRechte2.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-b2b63b025decc71566300ed8fc59db301bd92ea5%2FOdooRechte2.png?alt=media\&token=4b1c5155-b0d8-414f-90e2-59175b41ae7f)

**Error:** Odoo connected successfully, but 0x contacts were found\
**Cause**: multiple databases were created, and database X was connected with 0x contacts\
**Solution:** You can find your created databases under User menu ➔ My databases

**Error**: Summary is not transferred to the Odoo contact\
”Your latest changes for the selected associations could not be pushed”\
**Cause**: the Odoo user does not have write permissions\
\- make sure that logging to Contacts/Deals/Companies and Summary is enabled in the sipgate app ➔ Settings ➔ Integrations ➔ Odoo if you want to use this feature\
**Solution**: The Odoo admin must grant the Odoo user write permissions for\
`mail.activity` \
\- read, write, and create permissions are generally required.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/integrationen-fur-die-sipgate-app/odoo-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
