Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
is is an updated thread catering to this question for Odoo 8.0. The original 7.0 thread was getting a little chaotic so I decided to create a new thread for the question.
If you would like to add an image to the tree view on the sales order line or quotation line, please install the following module (instructions on Github in README):
I've simply ported Stefan's original work for 7.0 to make it 8.0-compatible. He has also built another module to support the image in tree view here:
The OdooCommunityWidgets module is dependant on the OCA module to function correctly. Please make sure you install both.
Here's a link to the original question:
here's the question content:.
how can I add small images in sale.order.line in OpenERP 7 web client? So that each product in orders or quotations has as small image.
Thank you very much."
I installed both the apps web_tree_image and product_image_list_view and I am still getting only download links instead of images in tree view. In sale order line, I am able to see an image. But when I edit the product.template tree view (warehouse -> products) to add "<field name="image_small" widget='image'/>" I am seeing only download link instead of the images. Is this the correct way to include image in list view ?
Edit : After some debugging, I found out that row_data[this.id].value returns the size string ("xxxx bytes"/"xxxx kB",..) instead of the binary value !. This results in
<img src="data:image/png;base64,127 kB" width="64px" height="64px">
Notice the 127 kB . Here the value of field should be printed out.
May be someone can tell me why size is being returned instead of value.
I am using bitnami odoo instance 8.0-8 which uses odoo nightly version 8.0-20150423
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/20/15, 12:19 AM|
|Seen: 1801 times|
|Last updated: 4/30/16, 9:53 AM|