Skip to documentation
Odoo integration

Group and Summarize Records

Perform Group and Summarize Records through Odoo.

View as Markdown
odoo_group_records
writeodoo

Inputs

  • model
    expressionrequired
    Model

    Required literal value or workflow expression.

  • match_fields
    json
    Match Fields

    Optional JSON value.

  • domain
    json
    Domain

    Optional JSON value.

  • group_by
    textrequired
    Group By

    Required text value.

  • aggregates
    text
    Aggregates

    Optional text value.

    Default: "__count"

  • max_records
    number
    Max Records

    Optional numeric value.

    Default: 100

  • include_archived
    boolean
    Include Archived

    Optional true-or-false value.

    Default: false

  • context
    json
    Context

    Optional JSON value.

Outputs

  • groupsGroups
  • group_countGroup Count
  • successSuccess
  • errorError
  • error_nameError Name
  • status_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
}
View all Odoo actions