This question has been flagged
4 Replies
3275 Views

I want to put barcodes into the report. I have tried few methods and still cannot do it

Is there a good way to generate barcode to report?

Avatar
Discard
Best Answer

Hi

Refere below link may help you

https://sites.google.com/site/guenterbartsch/blog/openerpprintsinglebarcodelabelsdirectlyfromproductview

https://www.odoo.com/forum/help-1/question/how-can-we-generate-barcode-in-openerp7-0-14947

http://acespritechblog.wordpress.com/2014/03/27/openerp-product-barcode-report/

Avatar
Discard
Best Answer

Hi,

You need to add the below code to add the barcode in your report

<barcode x="1cm" y="1cm" height="1cm" code="EAN13">7501031311309</barcode>


Regards

Avatar
Discard
Best Answer

You can use the following code in your RML report file: www.reportlab.com/examples/rml/test/test_006_barcodes.pdf

You can also check out my answer here for more details: https://www.odoo.com/forum/help-1/question/automatic-qr-code-to-invoice-sales-order-quotations-and-products-33172

Avatar
Discard
Author

I tried [[ (o.partner_id.phone) or removeParentNode('para') ]] to iaccount_print_invoice.rml but it still gives me numbers

Author
[[ (o.partner_id.phone) or removeParentNode('para') ]]
Author

is there any font that I need to install to print barcode?

Please put your RML snippet here http://pastebin.com/ and share with us the link.

Author Best Answer

My code is as below:

http://pastebin.com/pPre0Frd

and I can only print the value but not the barcode, is there anything I need to install?

Avatar
Discard