Skip to content

API Reference parrot_tools.odoo.transport.xmlrpc

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

parrot_tools.odoo.transport.xmlrpc

View source

XML-RPC transport for Odoo (v14-18 and any version with /xmlrpc/2/ enabled).

Uses xmlrpc.client (synchronous) and offloads RPC calls to a worker thread via asyncio.to_thread so the event loop stays unblocked. This mirrors the classic Odoo XML-RPC pattern used by Flowtask's OdooInjector and odoo-mcp-pro for older Odoo releases.

Alias AbstractOdooTransport

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

Class TimeoutSafeTransport

HTTPS XML-RPC transport with explicit socket timeout.

Parameter Type Default Description
timeout int
context Any | None None

Method TimeoutSafeTransport.make_connection

make_connection(host: str) -> http.client.HTTPSConnection

Parameter Type Default Description
host str

Returns: http.client.HTTPSConnection

Class TimeoutTransport

HTTP XML-RPC transport with explicit socket timeout.

Parameter Type Default Description
timeout int

Method TimeoutTransport.make_connection

make_connection(host: str) -> http.client.HTTPConnection

Parameter Type Default Description
host str

Returns: http.client.HTTPConnection

Class XmlRpcTransport

Synchronous XML-RPC client wrapped in an async surface.

Parameter Type Default Description
config OdooConfig Odoo connection configuration.

Attributes:

Attribute Type Description
name str
uid int | None

Method XmlRpcTransport.from_config

Build an XML-RPC transport from an :class:OdooConfig.

from_config(config: OdooConfig) -> 'XmlRpcTransport'

Parameter Type Default Description
config OdooConfig

Returns: 'XmlRpcTransport'

Method XmlRpcTransport.authenticate

authenticate() -> int

Returns: int

Method XmlRpcTransport.execute_kw

execute_kw(model: str, method: str, args: list[Any] | None = None, kwargs: dict[str, Any] | None = None) -> Any

Parameter Type Default Description
model str
method str
args list[Any] | None None
kwargs dict[str, Any] | None None

Returns: Any

Method XmlRpcTransport.version

version() -> dict[str, Any]

Returns: dict[str, Any]

Method XmlRpcTransport.close

close() -> None

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