# List Models

> Perform List Models through Odoo.

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

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

- Handler: `odoo_list_models`

- Connection type: `odoo`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "Odoo",
  "params": {
    "custom_only": false,
    "max_records": 500
  },
  "handler": "odoo_list_models"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `query` — Query (text)
  Optional text value.
- `custom_only` — Custom Only (boolean)
  Optional true-or-false value.
  Default: `false`
- `max_records` — Max Records (number)
  Optional numeric value.
  Default: `500`

## Outputs

- `models` — Models
- `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",
  "properties": {
    "query": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "custom_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "max_records": {
      "type": "number",
      "default": 500,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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