fetch_and_upload
Load a file from a URL or local path and store it as an Odoo ir.attachment; the server handles the transfer so binary data does not enter AI context.
Instructions
💡 Before multi-step work, check find_skill / list_workflows for canonical recipes. Load a file from a URL or local absolute path and store it as an Odoo ir.attachment. The MCP server handles the transfer — no binary passes through the AI context. Pass attachment_id to replace an existing attachment in-place (same ID, no arch update needed). Omit attachment_id to create a new attachment. is_image: process the file as an image (validated and optimised; Odoo rejects other files) — false for JS/CSS/HTML/JSON/fonts. Returns {id, src} usable in any context (arch_db, chatter, record field); src is /web/image/{id} for images, /web/content/{id} for other files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| public | No | ||
| res_id | No | ||
| source | Yes | ||
| is_image | No | ||
| res_model | No | ir.ui.view | |
| attachment_id | No |