Skip to documentation
Odoo integration

Download Attachment

Perform Download Attachment through Odoo.

View as Markdown
odoo_download_attachment
writeodoo

Inputs

  • attachment_id
    expressionrequired
    Attachment Id

    Required literal value or workflow expression.

  • document_type
    text
    Document Type

    Optional text value.

    Default: "odoo_attachment"

Outputs

  • document_idDocument Id
  • s3_pathS3 Path
  • attachment_idAttachment Id
  • filenameFilename
  • mimetypeMimetype
  • sizeSize
  • sha256Sha256
  • res_modelRes Model
  • res_idRes Id
  • was_existingWas Existing
  • successSuccess
  • errorError
  • error_nameError Name
  • status_codeStatus 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
{
  "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
{
  "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
}
View all Odoo actions