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 print barcode for products

By
E.M.
on 10/3/15, 2:38 PM 1,037 views

I would like to know what should be done to print EAN13 barcode label for a given product.

I can't see any template in the PRINT menu of the product.

Thanks Axel. But I am a step behind. Still I don't know what steps need to be done to be able to have a print button or print menu option for a label thermal printer. Do I have to prepare a whole report from scratch??

E.M.
on 10/4/15, 12:20 PM

I think that is not what you ask. You need to be consistent in what you are asking for someone can help you. If you ask for something you will get answers according to what you are asking

Axel Mendoza
on 10/5/15, 2:07 AM

Thanks Axel. Well, no hard feelings and no blames, sometimes misunderstandings happen. This time I just have no idea on where to start. I have seen that thermal label printers use their own commands (usually EPSON) , I am wondering how to implement that, I guess there must be something already done.

E.M.
on 10/5/15, 3:30 PM
1

Axel Mendoza

--Axel Mendoza--
10195
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/3/15, 2:52 PM

There is an Odoo controller for reports barcode images, as docs says at: https://www.odoo.com/documentation/8.0/reference/reports.html


Barcodes are images returned by a controller and can easily be embedded in reports thanks to the QWeb syntax:
<img t-att-src="'/report/barcode/QR/%s' % 'My text in qr code'"/>
More parameters can be passed as a query string
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s'%('QR', 'text', 200, 200)"/>

That controller accepts this types of barcodes: 

:param type: Accepted types: 'Codabar', 'Code11', 'Code128', 'EAN13', 'EAN8', 'Extended39', 'Extended93', 'FIM', 'I2of5', 'MSI', 'POSTNET', 'QR', 'Standard39', 'Standard93', 'UPCA', 'USPS_4State'

Your image could be defined like:

<img t-att-src="'/report/barcode/EAN13/%s' % prod.ean13"/>

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)

Stats

Asked: 10/3/15, 2:38 PM
Seen: 1037 times
Last updated: 10/5/15, 3:30 PM