Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to display product attchements on ecommerce section of Odoo?

By
studio7t7
on 5/3/16, 6:46 AM 247 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




Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 5/3/16, 6:46 AM
Seen: 247 times
Last updated: 5/5/16, 6:36 PM