This question has been flagged
2191 Views

Hi,

I am trying to find a way to display attachment added from products section to ecommerce/web.there are some partially developed modules on git hub but not working or not working for V9.This thread helped me to

https://www.odoo.com/forum/help-1/question/fixed-what-is-wrong-with-this-code-73380

Following this I could able to show no of attachments for a product on website section.But I cannot get the link to uploaded file and let it download for users.

This code shows no of attachments -

<a><t t-esc="len(images)" widget="url"/>Product Attachment</a>

I need to find out uploaded file ID and make a URL like this -

/web/content/FILE_ID?download=true

Then I need to replace it with above code and let it download.

Can anyone help me on this

Thanks




Avatar
Discard