Skip to content

API Reference parrot_tools.odoo.transport.jsonrpc

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

parrot_tools.odoo.transport.jsonrpc

View source

Legacy JSON-RPC 2.0 transport — adapts the existing async OdooInterface.

Alias AbstractOdooTransport

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

Class JsonRpcTransport

Wrap :class:parrot.interfaces.OdooInterface as a transport.

Delegates all calls to the underlying interface. This remains available for compatibility with deployments that still require Odoo's legacy /jsonrpc endpoint; auto-detection prefers JSON-2 for Odoo 19+.

Parameter Type Default Description
interface OdooInterface A configured :class:OdooInterface instance.

Attributes:

Attribute Type Description
name str
uid int | None

Method JsonRpcTransport.from_config

Build a transport from an :class:OdooConfig payload.

from_config(config: OdooConfig) -> 'JsonRpcTransport'

Parameter Type Default Description
config OdooConfig

Returns: 'JsonRpcTransport'

Method JsonRpcTransport.authenticate

authenticate() -> int

Returns: int

Method JsonRpcTransport.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 JsonRpcTransport.version

version() -> dict[str, Any]

Returns: dict[str, Any]

Method JsonRpcTransport.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