# Get Model Fields

> Perform Get Model Fields through Odoo.

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

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

- Handler: `odoo_get_model_fields`

- Connection type: `odoo`

## Inputs

- `model` — Model (expression, required)
  Required literal value or workflow expression.
- `custom_only` — Custom Only (boolean)
  Optional true-or-false value.
  Default: `false`
- `writable_only` — Writable Only (boolean)
  Optional true-or-false value.
  Default: `false`
- `context` — Context (json)
  Optional JSON value.

## Outputs

- `model` — Model
- `fields` — Fields
- `field_names` — Field Names
- `count` — Count
- `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"
  ],
  "properties": {
    "model": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "custom_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "writable_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "model": {},
    "fields": {},
    "success": {},
    "error_name": {},
    "field_names": {},
    "status_code": {}
  },
  "additionalProperties": true
}
```
