odoo_get_attachment
Retrieve and download an Odoo attachment (ir.attachment) by its ID. Provide a local path to save the file; existing files are preserved.
Instructions
Telecharger une piece jointe (ir.attachment). Trouver son id : odoo_search sur ir.attachment, domaine '[["res_model","=","account.move"],["res_id","=",42]]'.
Le nom vient d'Odoo : seul son dernier composant est retenu (jamais de '../'). Un fichier existant n'est jamais écrasé — choisir un autre répertoire.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |