Skip to content
Snippets Groups Projects
Commit 3d59cc84 authored by Stanislas Sobieski's avatar Stanislas Sobieski
Browse files

[FIX] base: avoid indexing attachment on copy


When sending a mass mailing with a pdf attachment, the ir.attachment
is copied in the mail.composer for each email. Spending time and
resources in the indexing of the pdf. On copy that value is already in
the vals. This is especially true when attachment_indexation is
installed, processing the pdf documents can be costly with pdfminer.

It could also be done by overwriting the copu from ir_attachment but it
could happen a misuse of mass create of ir.attachment with the same file
has the same issue

closes odoo/odoo#99856

Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
parent 27cd3c08
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment