Hello,
I have a button added on gantt view( v13) and i created an attachment from a generated pdf, but i don't know to download this attachment directly when the button is clicked?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I have a button added on gantt view( v13) and i created an attachment from a generated pdf, but i don't know to download this attachment directly when the button is clicked?
Core Module website_mail_channel
views website_mail_channel_templates.xml file code to download file.
<div class="o_mg_link_content">
<div class="col-lg-2 col-md-3 text-center" t-foreach='message.attachment_ids' t-as='attachment'>
<a t-attf-href="/web/content/#{attachment.id}?download=true" target="_blank">
<div class='oe_attachment_embedded o_image' t-att-title="attachment.name" t-att-data-mimetype="attachment.mimetype" t-attf-data-src="/web/image/#{attachment.id}/100x80"/>
<div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
</a>
</div>
</div>
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.