Skip to Content
Menu
This question has been flagged
2 Replies
1024 Views

Hello,


My Odoo version is 13 and I would like to attach a file to the invoice mail, how to do it ? This file is previously uploaded by the user in a separate view.


I already try to override `action_invoice_sent` of `AccountMove` model by setting `default_attachment_ids` to the context but it doesn't work. The only attachment is always the invoice report.


Thanks for your help !

Gaspar.

Avatar
Discard
Author Best Answer

That's the problem, the file is not static. It's not known before the user uploads it.

Avatar
Discard
Best Answer

hi, if this attach is static(not depend on current invoice), you as administrator go to settings/technical/email templates and add this attachment in invoice template

Avatar
Discard