# List Field Choices

> Perform List Field Choices through Odoo.

Source: [https://genhealth.ai/docs/workflows/integrations/odoo/odoo_list_field_options](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_list_field_options)

Integration: [Odoo](https://genhealth.ai/docs/workflows/integrations/odoo.md)

- Handler: `odoo_list_field_options`

- Connection type: `odoo`

## Inputs

- `model` — Model (expression, required)
  Required literal value or workflow expression.
- `field` — Field (expression, required)
  Required literal value or workflow expression.
- `relation_domain` — Relation Domain (json)
  Optional JSON value.
- `query` — Query (text)
  Optional text value.
- `max_records` — Max Records (number)
  Optional numeric value.
  Default: `200`
- `context` — Context (json)
  Optional JSON value.

## Outputs

- `field_type` — Field Type
- `relation` — Relation
- `options` — Options
- `count` — Count
- `truncated` — Truncated
- `success` — Success
- `error` — Error
- `error_name` — Error Name
- `status_code` — Status Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "model",
    "field"
  ],
  "properties": {
    "field": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "model": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "query": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "max_records": {
      "type": "number",
      "default": 200,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "relation_domain": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "options": {},
    "success": {},
    "relation": {},
    "truncated": {},
    "error_name": {},
    "field_type": {},
    "status_code": {}
  },
  "additionalProperties": true
}
```
