# Download Attachment

> Perform Download Attachment through Odoo.

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

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

- Handler: `odoo_download_attachment`

- Connection type: `odoo`

## Inputs

- `attachment_id` — Attachment Id (expression, required)
  Required literal value or workflow expression.
- `document_type` — Document Type (text)
  Optional text value.
  Default: `"odoo_attachment"`

## Outputs

- `document_id` — Document Id
- `s3_path` — S3 Path
- `attachment_id` — Attachment Id
- `filename` — Filename
- `mimetype` — Mimetype
- `size` — Size
- `sha256` — Sha256
- `res_model` — Res Model
- `res_id` — Res Id
- `was_existing` — Was Existing
- `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": [
    "attachment_id"
  ],
  "properties": {
    "attachment_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_type": {
      "type": "string",
      "default": "odoo_attachment",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "size": {},
    "error": {},
    "res_id": {},
    "sha256": {},
    "s3_path": {},
    "success": {},
    "filename": {},
    "mimetype": {},
    "res_model": {},
    "error_name": {},
    "document_id": {},
    "status_code": {},
    "was_existing": {},
    "attachment_id": {}
  },
  "additionalProperties": true
}
```
