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.

2

Barcode on POS Receipt

By
mjsj leso
on 1/3/14, 5:40 AM 3,026 views

i want to print a barcode on pos receipt with order ID as the barcode number. Point of sale receipt was found on addons/point_of_sale/static/src/xml/pos.xml. How do i easily add a barcode at the end of the receipt?

you can use python barcode library to generate it. modify the xml and js.

ahmad
on 6/22/14, 10:27 PM
0

Acespritech

--Acespritech--
839
| 3 2 6
India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

Acespritech
On 9/4/15, 2:14 AM

You can use jquery.barcode.js file.

And in xml, you can do like this in bottom of receipt where you want to print barcode.

<table id="barcode_table" style="width:100%">

<tbody></tbody>

</table>


and from JS, you have to generate dynamic body part.

and following code will print barcode,

$('123456789').barcode(div_id, "code128")


Happy to help you if you do not understand.


Thanks,

Acespritech Solutions Pvt. Ltd.

Skype: acespritech

info@acespritech.com

0

Parikshit

--Parikshit--
939
| 6 3 8
Ahmedabad, India
--Parikshit--

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

Parikshit
On 8/31/15, 2:33 AM

Please contact at parikshitvaghasiya@gmail.com

0
hlaminswe
On 7/15/15, 9:29 PM

Use this barcode jquery plugins.

http://barcode-coder.com/en/barcode-jquery-plugin-201.html

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

3 follower(s)

Stats

Asked: 1/3/14, 5:40 AM
Seen: 3026 times
Last updated: 9/4/15, 2:14 AM