# Odoo — CRM API: gotchas

> Canonical URL: https://developers.apideck.com/apis/crm/odoo/gotchas

## GET /crm/companies

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.

## POST /crm/companies

`parent_id` is ignored on create and is never sent to Odoo. On current Odoo Online versions,
giving a company a parent company turns it into a contact of that parent: it takes on the
parent's VAT number and is no longer returned by the Companies endpoints. The connector
therefore does not write the parent, so the company stays available through this API.

When reading companies, `parent_id` returns the id of the parent company where one is set.
On Odoo Online a company with a parent is not returned by the Companies endpoints, so in
practice `parent_id` is only populated on release versions (Odoo.sh or self-hosted).

## PATCH /crm/companies/{id}

`parent_id` is ignored on update and is never sent to Odoo. On current Odoo Online versions,
giving a company a parent company turns it into a contact of that parent: it takes on the
parent's VAT number and is no longer returned by the Companies endpoints. The connector
therefore does not write the parent, so the company stays available through this API.
Sending `null` does not remove an existing parent either.

When reading companies, `parent_id` returns the id of the parent company where one is set.
On Odoo Online a company with a parent is not returned by the Companies endpoints, so in
practice `parent_id` is only populated on release versions (Odoo.sh or self-hosted).

## GET /crm/contacts

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.

## GET /crm/opportunities

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.

## GET /crm/leads

Leads must be enabled in the CRM configuration. More info on the [Odoo developer docs](https://www.odoo.com/documentation/18.0/applications/sales/crm/acquire_leads/convert.html#configuration).
## GET /crm/notes

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.

## GET /crm/users

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.

## GET /crm/activities

Odoo does not include a total record count in list responses. `meta.total_count` will not appear. Surfacing the true total requires a separate `search_count` call to the Odoo XML-RPC API — an extra API call that is not currently implemented.


[API reference](https://developers.apideck.com/apis/crm/reference.md) · [Coverage matrix](https://developers.apideck.com/apis/crm/coverage)
