Odoo Help


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.


How to print stock location on product label

Chaaya Chares
on 1/7/14, 11:10 PM 1,881 views

This is for OpenERP 7, under Warehousing, Product Labels:

How can I print the stock location on the product label?

Currently labels print product code, price, description, barcode. I want to add another row showing the location of each item (i.e. Rack, Row, Case as shown on the Inventory tab for each product.)

Any help would be very much appreciated.


Ralf Steinhardt
On 9/4/14, 1:41 PM

You have to edit 2 files in the folder openerp/addons/product/reports

product_label.xsl for the layout

product_label.xml for the necessary database fields

open product_label.xml and add the following lines:

<loc_rack type="field" name="loc_rack"/>

<loc_case type="field" name="loc_case"/>

<loc_row type="field" name="loc_row"/>

open product_label.xsl and add the following line around 80:

<xsl:value-of select="loc_rack"/><xsl:value-of select="loc_case"/><xsl:value-of select="loc_row"/>

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)


Asked: 1/7/14, 11:10 PM
Seen: 1881 times
Last updated: 3/16/15, 8:10 AM