odoo_aggregate
Aggregate Odoo records by groupby, counting and summing specified measures. Supports date groupings like month or year, replacing read_group for Odoo 18.
Instructions
Nombre et somme(s) par groupby. Remplace read_group (retire du RPC en Odoo 18).
measures : liste JSON de champs a sommer. Date : date_order:month
(day/week/quarter/year).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"groupby": "<groupby>"
},
"name": "odoo_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| domain | No | [] | |
| groupby | Yes | ||
| measures | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |