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 can I display a barcode on a form?

Nate Foster
on 6/3/15, 6:01 PM 557 views

I would like to display a barcode on my Manufactory Order view (view_type=form & model=mrp.production). 

What I've tried has been to enable debugging mode and edit the form view and inserting the following:

<barCode code="code128" fontName="Times-Roman" fontSize="50" alignment="CENTER"> 'My Data' </barCode>

The results I get is "My Data" rendered in clear text instead of a barcode. 

Any suggestions? 



| 5 4 7
Bikaner, India

OpenERP Devloper at SunARC Technology

On 6/4/15, 3:48 AM

Refer the Odoo 8 stock Module,

create and set image path /your_module/static/src/img/scan.png


 <div class="oe_right oe_button_box"> 
<button name="do_partial_open_barcode" groups="stock.group_stock_user" type="object"
class="oe_stock_scan_button" attrs="{'invisible': ['|',('pack_operation_exist', '=', True),('state','not in',('assigned', 'partially_available'))]}">
<img src="/stock/static/src/img/scan.png" class="oe_stock_scan_image oe_stock_scan_image_btn"/>

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

1 follower(s)


Asked: 6/3/15, 6:01 PM
Seen: 557 times
Last updated: 6/4/15, 3:48 AM