Group and Summarize Records
Perform Group and Summarize Records through Odoo.
odoo_group_recordswriteodoo
Inputs
- Model
modelexpressionrequiredRequired literal value or workflow expression.
- Match Fields
match_fieldsjsonOptional JSON value.
- Domain
domainjsonOptional JSON value.
- Group By
group_bytextrequiredRequired text value.
- Aggregates
aggregatestextOptional text value.
Default:
"__count" - Max Records
max_recordsnumberOptional numeric value.
Default:
100 - Include Archived
include_archivedbooleanOptional true-or-false value.
Default:
false - Context
contextjsonOptional JSON value.
Outputs
groupsGroupsgroup_countGroup CountsuccessSuccesserrorErrorerror_nameError Namestatus_codeStatus Code
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"model",
"group_by"
],
"properties": {
"model": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"domain": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"context": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"group_by": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"aggregates": {
"type": "string",
"default": "__count",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"max_records": {
"type": "number",
"default": 100,
"description": "Optional numeric value.",
"x-workflow-field-type": "number"
},
"match_fields": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"include_archived": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"groups": {},
"success": {},
"error_name": {},
"group_count": {},
"status_code": {}
},
"additionalProperties": true
}