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 add product image to the product label ?

By
Erik
on 4/24/13, 6:42 PM 2,860 views

Hi,

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...

klacus
on 4/24/13, 11:51 PM

Hi,

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

Erik
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
1
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

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

Hi,

[[ 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.

Erik
on 4/25/13, 5:40 AM

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

0 follower(s)

Stats

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