Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I wish to include a barcode on my printed checks. The barcode will be the suppliers reference number.
Using OpenOffice to edit my check (Accounting Voucher - Print Check (Bottom)) I've added the following line:
[[<barCode code="code128" barHeight="30">voucher.reference</barCode>]]
This code prints nothing.
I've also tried:
[[<barCode code="code128" barHeight="30">[[voucher.reference]]</barCode>]]
Which prints: </barCode>]]
What am I doing wrong? Many Thanks!
The answer to your question depends on which version of Odoo you are using, which report engine you are using, and what kind of barcode you want to display. I'm going to assume v7.0, RML, and UPC128.
The reason it doesn't work is because the UPC128 font (a barcode is a font) is not supported by the ReportLabs implementation used in Odoo 7.0. If you want to achieve this, you need to implement UPC128 in ReportLabs the same way EAN13 and a few others are. This is quite technical. The alternative is to get on Odoo Online to benefit from the new QWeb report engine. You will be able to use different fonts more easily. Otherwise, wait for v8 if you absolutely need to deploy on premise.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/11/14, 5:05 PM|
|Seen: 1700 times|
|Last updated: 3/16/15, 8:10 AM|