Odoo Help


How to add product image to the product label ?

on 4/24/13, 6:42 PM 3,730 views


I have been trying to add the product image to the product label definition but without any luck.

What are the tags in the xml and xsl file you have to add to achieve this?

With regards

Can you give us more detailed info's? Where you want to see the image? What do you mean "product label definition"? If you try something please attach the code, because everybody will be know what is your exact problem...

on 4/24/13, 11:51 PM


You are absolutely right, typed the question via ipad. Here is some more information :

openerp 6.1 In the product tree/product definition you can print a label of the product by pressing "Item label".

This report is connected to : /addons/stock/report/lot_move_label.xml and lot_move_label.xsl

What I would like to do is add the product_image field to this label.

What i have tried so far :

extend lot_move_label.xml with the product image field :

<?xml version="1.0" encoding="ISO-8859-1"?> <lots> <lot-line type="fields" name="id"> **<imagetype="field" name="product_id.produ

on 4/25/13, 5:39 AM

Hello Erik, have you found the solution, I'm having the same problem as you. could you post ur answer here?

Voathnak Lim
on 9/17/13, 6:08 AM
Michael Storck
On 7/30/13, 5:31 PM

Hi there,

try it like this:

In the product_label.xml add the line:

<logo type="field" name="company_id.logo"/>

In your xsl file you can access this property like this:

<image height="18.0" width="300.0"><xsl:value-of select="logo"/></image>

I hope it is helpful.

Kind regards

Dharmesh Rathod
On 4/25/13, 2:01 AM


[[ o.image and setTag('para','image', {'width':WIDTH,'height': HEIGHT}) ]] o.image or removeParentNode('para') ]]

Email : info@acespritech.com
Skype : acespritech

Hi, Thanks for your help. What I am looking for is the xsl tag for the image, as i understand it you gave me the tag for rml files.

on 4/25/13, 5:40 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/24/13, 6:42 PM
Seen: 3730 times
Last updated: 3/16/15, 8:10 AM