How to Download attached files in ir_attachment model in ODOO website.??
Passed values in controller like below but I dont have an Idea to fetch doc via website
attach = request.env['ir.attachment'].search([('res_id','=',order.id)],limit=1)
values = {
'website_sale_order': order,
'file_attach':attach.name,
'w_p': v1
}
In xml:
<strong>Attachments: </strong> <a t-esc="file_attach"/> it prints filename but cant able to link or downlad
HI, check with this module, you will get a solution if you go through this code
https://www.odoo.com/apps/modules/10.0/website_event_attachements/