read_attachment
Retrieve attachment details and content. Returns metadata plus base64 data for small attachments, metadata and warning for large ones, or direct link for URL-type attachments.
Instructions
Read an ir.attachment: metadata always, base64 content when small enough.
Binary attachments under ODOO_MAX_ATTACHMENT_BYTES are returned with their
base64 datas; larger ones return metadata plus a warning. URL-type
attachments return the link, never binary data.
Args: attachment_id: The ir.attachment id. include_data: When False, return metadata only (no base64 fetch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_data | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |