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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
nobody any idea?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up