Skip to content

API Reference parrot_tools.odoo.models.inputs

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

parrot_tools.odoo.models.inputs

View source

Pydantic input schemas for OdooToolkit tool methods.

Each tool method on :class:~parrot_tools.odoo.toolkit.OdooToolkit is decorated with @tool_schema(<InputModel>) so the LLM gets a precise JSON schema for the arguments it can pass.

Class AggregateRecordsInput

Input schema for aggregate_records — server-side grouping via read_group.

Attributes:

Attribute Type Description
model str
group_by list[str]
measures Optional[list[str]]
domain Optional[OdooDomain]
lazy bool
limit Optional[int]
offset int
order Optional[str]
having Optional[OdooDomain]

Class AttachDocumentInput

Attributes:

Attribute Type Description
res_model str
res_id int
name str
source str
mimetype Optional[str]
description Optional[str]

Class BuildDomainInput

Input schema for build_domain — structured domain construction.

Attributes:

Attribute Type Description
conditions list[dict[str, Any]]
logical_operator str

Class BusinessPackReportInput

Input schema for business_pack_report.

Attributes:

Attribute Type Description
pack Literal['sales', 'crm', 'inventory', 'accounting', 'hr']

Class ConfirmSaleOrderInput

Attributes:

Attribute Type Description
sale_order_id int

Class CreateInvoiceInput

Attributes:

Attribute Type Description
partner_id int
invoice_lines list[InvoiceLineInput]
move_type Literal['out_invoice', 'in_invoice', 'out_refund', 'in_refund']
invoice_date Optional[str]
invoice_date_due Optional[str]
journal_id Optional[int]
currency_id Optional[int]
invoice_origin Optional[str]
ref Optional[str]
extra Optional[dict[str, Any]]

Class CreatePartnerInput

Attributes:

Attribute Type Description
name str
is_company bool
email Optional[str]
phone Optional[str]
mobile Optional[str]
website Optional[str]
street Optional[str]
street2 Optional[str]
city Optional[str]
zip Optional[str]
state_id Optional[int]
country_id Optional[int]
parent_id Optional[int]
vat Optional[str]
ref Optional[str]
customer_rank Optional[int]
supplier_rank Optional[int]
extra Optional[dict[str, Any]]

Class CreateQuotationInput

Attributes:

Attribute Type Description
partner_id int
order_lines list[QuotationLineInput]
date_order Optional[str]
validity_date Optional[str]
pricelist_id Optional[int]
payment_term_id Optional[int]
user_id Optional[int]
team_id Optional[int]
company_id Optional[int]
client_order_ref Optional[str]
extra Optional[dict[str, Any]]

Class CreateRecordInput

Attributes:

Attribute Type Description
model str
values dict[str, Any]

Class CreateRecordsInput

Attributes:

Attribute Type Description
model str
vals_list list[dict[str, Any]]

Class DeleteRecordInput

Attributes:

Attribute Type Description
model str
record_id int

Class DeleteRecordsInput

Attributes:

Attribute Type Description
model str
record_ids list[int]

Class DiagnoseAccessInput

Input schema for diagnose_access — ACL and record-rule diagnosis.

Attributes:

Attribute Type Description
model str
operation Literal['read', 'write', 'create', 'unlink']
domain Optional[OdooDomain]
record_ids Optional[list[int]]

Class DiagnoseOdooCallInput

Input schema for diagnose_odoo_call — call preview/debug.

Attributes:

Attribute Type Description
model str
method str
args Optional[list[Any]]
kwargs Optional[dict[str, Any]]
transport Literal['auto', 'json2', 'xmlrpc', 'jsonrpc']
target_version Optional[str]
observed_error Optional[str]

Class FieldsGetInput

Attributes:

Attribute Type Description
model str
attributes Optional[list[str]]

Class FindPartnerInput

Attributes:

Attribute Type Description
name Optional[str]
email Optional[str]
phone Optional[str]
vat Optional[str]
is_company Optional[bool]
limit int

Class FitGapReportInput

Input schema for fit_gap_report — requirement classification.

Attributes:

Attribute Type Description
requirements list[dict[str, Any]]
business_context Optional[dict[str, Any]]

Class GenerateJson2PayloadInput

Input schema for generate_json2_payload — JSON-2 request preview.

Attributes:

Attribute Type Description
model str
method str
args Optional[list[Any]]
kwargs Optional[dict[str, Any]]
base_url Optional[str]
database Optional[str]

Class GetOdooProfileInput

Input schema for get_odoo_profile — comprehensive server snapshot.

Attributes:

Attribute Type Description
include_modules bool
module_limit int

Class GetRecordInput

Attributes:

Attribute Type Description
model str
record_id int
fields Optional[list[str]]

Class ImportRecordsInput

Idempotent upsert via Odoo's load (supports external IDs).

Attributes:

Attribute Type Description
model str
fields list[str]
data list[list[Any]]
context Optional[dict[str, Any]]

Class InspectModelRelationshipsInput

Input schema for inspect_model_relationships.

Attributes:

Attribute Type Description
model str

Class InvoiceLineInput

Attributes:

Attribute Type Description
product_id Optional[int]
quantity float
price_unit float
name Optional[str]
discount Optional[float]
tax_ids Optional[list[int]]
account_id Optional[int]

Attribute OdooDomain

Class PostInvoiceInput

Attributes:

Attribute Type Description
invoice_id int

Class QuotationLineInput

Attributes:

Attribute Type Description
product_id int
product_uom_qty float
price_unit Optional[float]
name Optional[str]
discount Optional[float]
tax_ids Optional[list[int]]

Class RegisterPaymentInput

Attributes:

Attribute Type Description
invoice_id int
journal_id int
amount Optional[float]
payment_date Optional[str]
payment_method_line_id Optional[int]
communication Optional[str]

Class ScanAddonsSourceInput

Input schema for scan_addons_source — local addon scanning.

Attributes:

Attribute Type Description
addons_paths Optional[list[str]]
max_files int
max_file_bytes int

Class SchemaCatalogInput

Input schema for schema_catalog — bounded model catalog.

Attributes:

Attribute Type Description
query Optional[str]
models Optional[list[str]]
include_fields bool
limit int

Class SearchEmployeeInput

Input schema for search_employee.

Attributes:

Attribute Type Description
name str
limit int

Class SearchHolidaysInput

Input schema for search_holidays — leave/holiday queries.

Attributes:

Attribute Type Description
start_date str
end_date str
employee_id Optional[int]

Class SearchRecordsInput

Attributes:

Attribute Type Description
model str
domain Optional[OdooDomain]
fields Optional[list[str]]
limit int
offset int
order Optional[str]

Class SetBinaryFieldInput

Attributes:

Attribute Type Description
model str
record_id int
field_name str
source str

Class UpdatePartnerContactInfoInput

Attributes:

Attribute Type Description
partner_id int
email Optional[str]
phone Optional[str]
mobile Optional[str]
website Optional[str]
street Optional[str]
street2 Optional[str]
city Optional[str]
zip Optional[str]
state_id Optional[int]
country_id Optional[int]

Class UpdateRecordInput

Attributes:

Attribute Type Description
model str
record_id int
values dict[str, Any]

Class UpdateRecordsInput

Attributes:

Attribute Type Description
model str
record_ids list[int]
values dict[str, Any]

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