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.
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
|Asked: 9/11/14, 5:05 PM|
|Seen: 1445 times|
|Last updated: 3/16/15, 8:10 AM|