Skip to content

API Reference parrot_tools.odoo.transport.detect

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.odoo.transport.detect

View source

Auto-detect the best Odoo external API transport for a given server.

Strategy: use the unauthenticated /web/version endpoint first because it is the Odoo 19+ replacement for the legacy common.version service. If it reports Odoo 19 or newer, prefer JSON-2. Older versions use XML-RPC. When /web/version is unavailable, fall back to the legacy JSON-RPC version probe only for compatibility detection.

  • 19.0 and newer → JSON-2
  • anything older or any error → XML-RPC

Alias AbstractOdooTransport

Re-exported from parrot_tools.odoo.transport.base.AbstractOdooTransport.

Alias Json2Transport

Re-exported from parrot_tools.odoo.transport.json2.Json2Transport.

Alias JsonRpcTransport

Re-exported from parrot_tools.odoo.transport.jsonrpc.JsonRpcTransport.

Attribute Protocol

Alias XmlRpcTransport

Re-exported from parrot_tools.odoo.transport.xmlrpc.XmlRpcTransport.

Function auto_detect_transport

Return the best transport for the given server.

Probe order:

  1. /web/version — succeeds → inspect server_serie. Use JSON-2 when serie ≥ 19.0.
  2. Legacy JSON-RPC common.version — compatibility-only probe.
  3. Default to XML-RPC.

auto_detect_transport(config: OdooConfig) -> AbstractOdooTransport

Parameter Type Default Description
config OdooConfig

Returns: AbstractOdooTransport

Function build_transport

Build a transport for an explicit protocol choice.

Returns None for "auto" — callers must invoke :func:auto_detect_transport instead, which is async.

build_transport(protocol: Protocol, config: OdooConfig) -> AbstractOdooTransport | None

Parameter Type Default Description
protocol Protocol
config OdooConfig

Returns: AbstractOdooTransport | None

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally