Odoo Connector

@idaria/integration-odooodoo

Gemeinsamer Odoo-JSON-RPC-Layer (read-only) für alle Odoo-Konsumenten + Handelsregister-Enrichment (OpenRegister / NorthData). Publishes kernel-Services 'odoo.client' (OdooClient), 'odoo.cache' (OdooResponseCache), 'odoo.schema' (OdooSchemaService: whitelisted models + fields_get incl. relation), 'odoo.enrich' (CompanyEnrichmentProvider) + per-Scope Agent-Toolkits 'odoo.agentToolkit.{accounting,hr}' (query_graph + odoo_execute); contributes den native odoo_version-Tool und — optional via odoo_generic_read_enabled — die generischen Read-Tools odoo_query / odoo_describe sowie enrich_company via ctx.tools.register.

integration · erp

Setup guide

Set up the Odoo connection

The integration talks to Odoo's External API (JSON-RPC, read-only) with an API key instead of a password. You need three values, a fourth is optional:

  1. Odoo URL: your instance, e.g. https://erp.example.com or https://yourco.odoo.com (no trailing slash needed).
  2. Database (optional): the Odoo database name (for SaaS instances usually the subdomain part). Leave it empty and the connector uses the first database the instance lists at /web/database/list. Set it when the instance hosts several databases or does not publish its database list (list_db = False).
  3. API Login: the email of a technical user account used for JSON-RPC.
  4. API Key: in Odoo → Profile → Account Security → New API Key → copy → field API key.

Recommended: a dedicated technical user with exactly the required module read rights, not an admin account.

Optional: the company-enrichment providers (OpenRegister / NorthData) are off by default — enable and key them only if you need commercial-register lookups.

Setup fields

The operator fills these in when installing the plugin.

  • odoo_urlurl, required
    Odoo URLBase-URL der Odoo-Instanz, z.B. https://erp.example.com oder https://meinefirma.odoo.com. Kein trailing slash nötig.
  • odoo_dbstring, optional
    Datenbank-Name (optional)Name der Odoo-Datenbank — bei SaaS-Instanzen der Subdomain-Teil. Leer lassen: der Connector nimmt die erste Datenbank, die die Instanz unter /web/database/list ausgibt. Eintragen, wenn die Instanz mehrere Datenbanken hat oder die Liste gesperrt ist (list_db = False).
  • odoo_loginstring, required
    API-LoginE-Mail-Adresse des Technical-User-Accounts für JSON-RPC.
  • odoo_api_keysecret, required
    API-KeyRotierbar in Odoo → Profil → Accountsicherheit → New API Key.
  • odoo_proxy_max_bytesinteger, optional
    Max Response-Size (Bytes)Kappt Odoo-Antworten über diesem Limit, um Memory-Blow-Ups bei großen search_reads zu verhindern. Default 500000.
  • odoo_insecure_tlsboolean, optional
    TLS-Verifizierung deaktivieren (stillgelegt)Stillgelegt seit 0.7.0, ohne Wirkung (integration-odoo#10): alle Odoo-Requests laufen über ctx.http mit TLS-Prüfung. Für ein Odoo mit privatem CA- oder selbstsigniertem Zertifikat das Zertifikat auf dem Host per NODE_EXTRA_CA_CERTS hinterlegen. Ein Schalter pro Plugin ist im Kernel angefragt (byte5ai/idaria#2381).
Show all 24 setup fields
  • odoo_generic_read_enabledboolean, optional
    Generische Odoo-Read-Tools aktivierenRegistriert die orchestrator-weiten Tools `odoo_query` (search_read) und `odoo_describe` (Schema). Sie lesen über die HR-/Accounting-Scope-Grenze hinweg (model-auto-routing), bleiben aber strikt read-only und behalten die HR-Red-Line-Sperren (Gehälter, Bank-/Privatdaten). Default aus — ohne Aktivierung läuft Odoo-Zugriff nur über die Sub-Agents. Das `odoo_version`-Tool ist unabhängig davon immer aktiv.
  • odoo_entity_sync_enabledboolean, optional
    Entity-Sync aktivierenRegistriert einen Background-Job, der res.partner / hr.employee / hr.department / account.journal periodisch in den Knowledge-Graph spiegelt. Der Job nutzt höchstens 40 der 60 ctx.http-Requests pro Minute, die das Plugin hat; der Rest bleibt für Chat-Tools frei.
  • odoo_entity_sync_interval_hoursinteger, optional
    Entity-Sync Intervall (Stunden)Zwischen 1 und 168. Default 6h.
  • odoo_entity_sync_page_sizeinteger, optional
    Entity-Sync Page-SizeOdoo search_read batch-Größe pro Call. Default 100.
  • odoo_entity_sync_max_per_modelinteger, optional
    Entity-Sync Max pro ModellHard-cap für Records pro Modell-Durchlauf, z.B. 5000 = max 5k Records pro res.partner-Sync. Default 5000.
  • openregister_enabledboolean, optional
    OpenRegister aktivierenAktiviert den OpenRegister-Provider für das enrich_company-Tool. Gewinnt vor NorthData, wenn beide aktiv sind.
  • openregister_api_keysecret, optional
    OpenRegister API-KeyBearer-Token aus https://docs.openregister.de/authentication.
  • openregister_base_urlurl, optional
    OpenRegister Base-URLDefault https://api.openregister.de.
  • openregister_rate_limit_rpsstring, optional
    OpenRegister Rate-Limit (rps)
  • openregister_cache_ttl_daysinteger, optional
    OpenRegister Cache-TTL (Tage)
  • openregister_max_bytesinteger, optional
    OpenRegister Max Response-Size
  • openregister_fetch_levelenum, optional
    OpenRegister Fetch-LevelWie viele Daten pro Lookup geholt werden. Default standard.
  • northdata_enabledboolean, optional
    NorthData aktivierenAktiviert den NorthData-Provider (Plan-B, nur wenn OpenRegister aus ist).
  • northdata_api_keysecret, optional
    NorthData API-KeyX-Api-Key aus https://www.northdata.com/doc (Premium-Plan).
  • northdata_base_urlurl, optional
    NorthData Base-URL
  • northdata_rate_limit_rpsstring, optional
    NorthData Rate-Limit (rps)
  • northdata_cache_ttl_daysinteger, optional
    NorthData Cache-TTL (Tage)
  • northdata_max_bytesinteger, optional
    NorthData Max Response-Size

Permissions

This is everything the plugin is allowed to access once it is installed.

memory
readsnone
writesnone
graph
readsnone
writesnone
entity_systemsodooopenregisternorthdata
network
outbound$config.odoo_url$config.openregister_base_urlapi.openregister.de$config.northdata_base_urlwww.northdata.com
filesystem
scratchno

Dependencies and capabilities

Provides
odoo.client@1odoo.cache@1odoo.agentToolkit.hr@1odoo.agentToolkit.accounting@1odoo.enrich@1odoo.schema@1
Requires
knowledgeGraph@^1entityRefBus@^1

Versions

VersionCoreSizePublishedsha256Download
v0.8.0latest>=1.78.0 <2.0160.0 KB30 Nov 20262c41d41911cd….zip