Skip to content

API Reference parrot_tools.odoo.transport.base

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

parrot_tools.odoo.transport.base

View source

Abstract transport for Odoo external API dialects.

Class AbstractOdooTransport

Common surface for JSON-2, legacy JSON-RPC, and XML-RPC backends.

Concrete transports are responsible for authentication, dispatching toolkit calls, and reporting server version. The toolkit composes one of these — it never constructs an Odoo client directly.

Attributes:

Attribute Type Description
config OdooConfig
uid int | None
name str Human-readable transport identifier ('json2' | 'jsonrpc' | 'xmlrpc').

Method AbstractOdooTransport.authenticate

Authenticate against Odoo and cache the user id.

authenticate() -> int

Returns: int — The authenticated user id.

Raises:

  • OdooAuthenticationError — On invalid credentials.
  • OdooRPCError — On Odoo-side errors.
  • OdooConnectionError — On network failures.

Method AbstractOdooTransport.execute_kw

Dispatch a model method via the underlying Odoo external API.

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 AbstractOdooTransport.version

Return server version info (no auth required).

version() -> dict[str, Any]

Returns: dict[str, Any]

Method AbstractOdooTransport.close

Release any held resources (sessions, sockets).

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