# Update Records

> Perform Update Records through Odoo.

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

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

- Handler: `odoo_update_records`

- Connection type: `odoo`

## Inputs

- `model` — Model (expression, required)
  Required literal value or workflow expression.
- `record_ids` — Record Ids (expression, required)
  Required literal value or workflow expression.
- `values` — Values (json, required)
  Required JSON value.
- `resolve_names` — Resolve Names (boolean)
  Optional true-or-false value.
  Default: `true`
- `fields` — Fields (expression)
  Optional literal value or workflow expression.
- `context` — Context (json)
  Optional JSON value.

## Outputs

- `records` — Records
- `record_ids` — Record Ids
- `count` — Count
- `success` — Success
- `error` — Error
- `error_name` — Error Name
- `status_code` — Status 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

```json
{
  "type": "object",
  "required": [
    "model",
    "record_ids",
    "values"
  ],
  "properties": {
    "model": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "fields": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "values": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "record_ids": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "resolve_names": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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