OdooWiki OCA HUB

Mail Attach Existing Attachment

mail_attach_existing_attachment folder_open OCA/mail open_in_new
Social Network License: AGPL-3

This module was written to add the possibility to add attachments located on the object by sending it by email with the mail compose message wizard

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When sending an email from an Odoo record, you can tick existing attachments already stored on that record so they are included in the message, instead of uploading them again.

This module extends the standard email composition window (the one that opens when you click 'Send message' on a record such as a customer, an invoice or a task).

  • In that window, next to the usual attachment area, a new list of checkboxes appears showing the files already attached to the record you are writing about. You simply tick the ones you want to send.
  • The list is built automatically from the attachments linked to the current record(s) and the current document type, so it always reflects what is really stored on that record.
  • The extra section is only shown when the email is being written for an existing record and not in mass mailing mode, so it stays out of the way in other situations.
  • When the message is sent, the ticked files are added to the email as regular attachments, so recipients receive them together with the message.

It touches the email composition wizard (mail.compose.message) and the attachment model (ir.attachment), and adds a checkbox field plus a computed list of available attachments. No new menus or reports are created; the change is visible directly inside the standard 'Send message' dialog.

Depends on

mail
Models and fields (1)
  • mail.compose.message · extends an existing modelcan_attach_attachment, object_attachment_ids (Object Attachments), display_object_attachment_ids

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Add some attachments on an object by creating a new Log note
  • Then, by sending the object via email, you can select the attachment added earlier

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.