> ## Documentation Index
> Fetch the complete documentation index at: https://docs.caard.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Odoo

> Sync captured leads to Odoo CRM, with their contacts and companies.

The Odoo integration turns each CAARD lead into an Odoo CRM lead. CAARD also creates or updates the contact behind it and files that contact under their company, so your sales team finds the lead in the pipeline and the person in Contacts.

Syncing is one-way. CAARD writes to Odoo and never copies Odoo changes back into CAARD. It only reads the Odoo lead to show its current stage and salesperson on the CAARD lead page.

## Before you connect

* You need Odoo 17 or newer: Odoo Online, Odoo.sh or self-hosted.
* The CRM app must be installed.
* On Odoo Online, external API access needs the **Custom** plan. One App Free and Standard plans can't connect.
* CAARD works in Odoo as the user whose API key you use, and can only do what that user can. Check the user before you connect, see below.

### Check the Odoo user

Open **Settings → Users & Companies → Users** and the user you'll connect with.

* **Login**, under the user's name: you'll enter it in CAARD.
* On the **Access Rights** tab, **Sales** must be **All Documents** or **Administrator**. With **Own Documents Only**, Odoo refuses to create a lead for any other salesperson.
* With several companies, the same tab shows **Companies** and **Default Company**. Add every company your leads can go to. See [Odoo with several companies](https://docs.caard.net/integrations/odoo-multi-company.md).

An admin user can create an API key that never expires (see below). A dedicated user, such as *CAARD Integration*, keeps CAARD's records easy to recognise and its key easy to revoke.

## Connect Odoo

**1. Create an API key in Odoo**

Signed in to Odoo as that user, open your avatar menu and go to:

* **Odoo 19 and later:** **Preferences → Security → Add API Key**
* **Odoo 17 and 18:** **Preferences → Account Security → New API Key**

Name it `CAARD`. On Odoo 18 and later, pick **Persistent Key** as the duration. Only admin users see that option; other users can create keys of up to 3 months. Odoo shows the key once, so copy it before closing the dialog.

**2. Open the Odoo integration**

In CAARD, go to **Integrations** and select **Connect** on the Odoo card.

**3. Enter your details**

Paste the address you open Odoo at, up to the domain (for example `https://yourcompany.odoo.com`, without `/odoo` or `/web`), the user's login, and the API key. Leave **Database** blank: CAARD finds it.

**4. Check the defaults**

CAARD detects your Odoo version and creates default field mappings. Select **Send test lead** on the Overview tab to see where each field lands.

> [!WARNING]
>
> A key that isn't persistent stops working on its expiry date, and syncs then fail with *Your Odoo connection needs to be reconnected*. Before it expires, create a new key and use **Update credentials** on the Overview tab.

### The database name

Only needed when CAARD says *This server hosts several databases*. Find the name:

* **Self-hosted:** open `https://<your Odoo address>/web/database/selector`, which lists the databases unless your admin turned the list off.
* **Odoo.sh:** the database of your production branch, shown in your Odoo.sh project.
* **Odoo Online:** CAARD works it out from the address. If it can't, it's usually the subdomain, for example `yourcompany`.

A wrong name gets *Odoo didn't recognise that database name*.

## What syncs

For each lead, CAARD syncs:

* The **company**, found by website or email domain (then by name) and created if it doesn't exist.
* The **contact**, matched by email so an existing Odoo contact is reused rather than duplicated.
* The **CRM lead**, linked to the contact. Odoo fills in its contact name, email and phone from the contact.
* **Notes**, voice notes included, posted to the lead's chatter, one post per note. Or into the lead's Notes field instead, see below.
* **Tasks**, as To-Do activities on the lead.
* **Meeting summaries and transcripts**, into fields you choose, see [Odoo field mapping](https://docs.caard.net/integrations/odoo-field-mapping.md#notes-voice-notes-and-meetings).
* **Tags**, as Odoo CRM tags. Missing tags are created.
* The **event**, as the lead's UTM campaign, so Odoo's reports can group leads by event. CAARD creates one campaign per event.
* The **salesperson**, from the Salesperson Mapping tab.

By default CAARD never replaces something already in Odoo. It fills in empty fields on the contact and the lead, and adds notes and tags alongside what's there. If your team fixes a contact's name or reassigns a lead in Odoo, the next sync leaves that alone. To have CAARD's value win instead, set that row to **Overwrite** on the Field Mapping tab.

## Notes and tasks in the chatter

The chatter is the activity feed on every Odoo record, where sales teams read and post. The **Chatter** section of the Overview tab has two switches, both on by default.

* **Post notes to the chatter** posts each CAARD note as an internal note on the Odoo lead, signed with the name of the rep who wrote it. Answers from a capture form post together as one note. Editing a note in CAARD updates it in Odoo. Deleting a note in CAARD leaves it in Odoo.
* **Create activities from tasks** turns each team task linked to a lead into a To-Do activity on the Odoo lead, with the same due date. It goes to the task assignee's Odoo user from Salesperson Mapping, or to the lead's salesperson when the assignee isn't mapped. Editing the task in CAARD updates the activity, and completing or deleting it closes the activity. Reopening a task you completed in CAARD schedules a new activity. Personal tasks stay in CAARD. Once a rep marks an activity done in Odoo, CAARD leaves it alone. Task changes reach Odoo right away when **Auto-Sync** is on, and otherwise with the lead's next sync.

CAARD posts each note and task once. A later sync only updates what changed.

Odoo tells the assignee about each new activity, by email or in their Odoo inbox depending on their own notification setting, just as when a colleague assigns one.

Notes go to one place. While chatter notes are on, the **Notes** row on the Field Mapping tab is off. Turning chatter notes off turns that row back on when you save, so notes go to the lead's Notes field instead. Choose the field if your team exports leads or reads notes in list views; chatter posts don't appear in exports.

## Logging outreach emails

Turn on **Log outreach emails** to record each email CAARD sends to a lead that's already in Odoo. Pick how each one is logged:

| Option | What you see in Odoo |
| - | - |
| Chatter email | A message in the lead's chatter from the rep, with the subject and body |
| Completed activity | A done Email activity, which Odoo's activity reports count |
| Both | One of each |

Logged emails use Odoo's internal note type, so Odoo doesn't email the lead's followers.

## Routing

The **Routing** tab decides where new Odoo leads land: a sales team, extra CRM tags, and a UTM medium and source. The choices come from your Odoo, and **Refresh from Odoo** reloads them after you add a team or tag there.

* Routing applies when CAARD creates the Odoo lead. Leads already in Odoo stay where your reps put them.
* It wins over a field mapping that targets the same Odoo field. Its tags are added to the lead's own tags.
* If a routed team or tag is deleted in Odoo, CAARD syncs the lead without it and notes that on the job in Sync History.

To send each event's leads to a different team, set routing on an event override.

### Several Odoo companies

If your Odoo database holds several companies, the Routing tab also has a **Company** picker, and each sales team shows its company. CAARD puts each new lead in one company and only links it to contacts, salespeople and teams that fit. See [Odoo with several companies](https://docs.caard.net/integrations/odoo-multi-company.md) for how the company is chosen and how to set up the Odoo user.

## Overrides for subteams and events

The **Configuring for** menu above the Overview, Field Mapping, Company Mapping, Routing and Salesperson Mapping tabs switches between **Full Team** and an override. Create an override for a subteam or an event, either as a copy of the Full Team settings or empty.

A lead uses its event's override first, then the override of a subteam its owner belongs to, then Full Team. In an override:

* Each setting either has its own value or uses the Full Team value. Clear a setting to go back to the Full Team value.
* Its field and company mappings replace the Full Team mappings once it has any. With none, its leads use the Full Team mappings.
* Members without their own salesperson mapping use their Full Team one.

Deleting an override sends its leads back to the Full Team settings and deletes its mappings.

## The Odoo panel on a lead

Once a lead has synced, its page in CAARD shows an **Odoo** panel with what the Odoo lead looks like now: stage, open, won or lost, probability, expected revenue, salesperson, sales team, next activity and last update, plus a link to the record. CAARD refreshes it when it's more than 10 minutes old, and **Refresh** fetches it again. Anyone who can see the CAARD lead can see its panel.

## Leads or opportunities

On the Overview tab, **Create leads as** decides where new records go. An override can choose differently for its leads. **Lead** puts them in CRM › Leads for qualification. **Opportunity** puts them straight into the pipeline.

Odoo hides leads unless its **Leads** setting is on (CRM › Configuration › Settings). CAARD checks that setting when you connect and picks Opportunity when it's off. If you turn the setting on later, reconnect before switching to Lead.

## When leads sync

| Trigger | How |
| - | - |
| Automatic | With **Auto-Sync** on, leads sync when they're created or updated |
| Single lead | Open a lead and select **Sync to CRM** |
| Bulk | **Bulk sync all** on the Overview tab queues every lead in the workspace |
| Test | **Send test lead** creates a sample contact and CRM lead |

Bulk syncs send a few leads at a time, so a small self-hosted Odoo server keeps up. The same goes for a CSV import with **Auto-Sync** on, and for **Sync to CRM** on many selected leads: their syncs wait their turn instead of all reaching Odoo at once. A single new lead still syncs straight away. If Odoo starts refusing requests, the rest of the queue slows down with it, see [automatic retries](https://docs.caard.net/integrations/odoo-troubleshooting.md#automatic-retries).

## Field mapping

Each row on the Field Mapping tab maps a CAARD field, one of your custom fields or a fixed value to a field on the Odoo **Contact** or the **Lead**. The field list comes from your Odoo, custom fields included.

The defaults only fill empty fields and add notes and tags, so nothing your team entered in Odoo gets replaced. If you connected Odoo before the defaults changed, your mappings stay as they were; select **Reset to defaults** on the Field Mapping tab to switch.

See [Odoo field mapping](https://docs.caard.net/integrations/odoo-field-mapping.md) for write modes, the default rows, custom fields, meeting summaries and transcripts, and how to add a field in Odoo.

## Troubleshooting

Every sync shows up on the **Sync History** tab. CAARD retries rate limits and brief Odoo outages on its own, and a retry never creates duplicates. For what each status, error and note means, and how to fix a failed sync, see [Odoo troubleshooting](https://docs.caard.net/integrations/odoo-troubleshooting.md).

## Disconnecting

**Disconnect Odoo** on the Danger Zone tab deletes the stored API key, your mappings, routing and overrides. Records already in Odoo stay as they are, notes and activities included. To revoke the key on the Odoo side too, delete it under Preferences → Account Security.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.