Odoo Help


How can I add the invoice number as a barcode in the invoice template?

on 11/3/15, 12:58 PM 1,300 views

I have tried adding to RML code

<barcode x="5 cm" y="17" code="Code128><123456></barcode>

But it did not work. The idea is to convert the invoice number to a barcode. Do I need to do/add something else?

--Jignesh Mehta--

Jignesh Mehta
On 11/4/15, 4:26 AM

Hello Leo,

Try This :-

<barCode code="code128" quiet="9" barWidth="2.00" fontSize="350" alignment="CENTER">[[ o.number]]</barCode>

Try This :-

<barcode x="1cm" y="1cm" code="code128">[[ o.number]</barcode>

Hope it is works for you.


Thanks for your help! I tried again with the command you wrote, but it still shows nothing. Do I need to add something else?

on 11/4/15, 10:43 PM

See my updated answer. It works fine for me. Hope It also works for you. Thanks,

Jignesh Mehta
on 11/5/15, 2:16 AM

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/3/15, 12:58 PM
Seen: 1300 times
Last updated: 11/5/15, 2:15 AM