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

how can i change the filename of the Attachment that will be sent by emails of an invoice?

i know how to change the filename for downloading the PDF within the report but this seems to be ignored for the email attachment.

Avatar
Discard
Best Answer

To change the name of the invoice attachment, you need to override the mail template named "email_template_edi_invoice" and then change the below:


<field name="report_name">Invoice_${(object.number or '').replace('/','_')}_${object.state == 'draft' and 'draft' or ''}</field>

 You can do it from UI after activate developer mode and from technical -> Templates and search for
Invoicing: Invoice email and edit report name

screenShot

Avatar
Discard
Author Best Answer

nobody any idea?

Avatar
Discard