Odoo Help


Problem with barcode image

on 5/27/16, 5:16 AM 707 views


I have a barcode and I want it to be visible in the point of sale interface. To do that, I used :

<img t-att-src="'/report/barcode/EAN13/%s' % 'AZERTY'"/>

(AZERTY is the string for the barcode temporarily)

But, currently, this do not show me a barcode but this :


Please, help me, I don't understand what is wrong with my code :(

Thanks in advance !

On 5/30/16, 3:46 AM

I solved my problem.

In facts, after trying a lot of things, the conclusion was that %s was unrecognize.

So I use now a different syntax that works :

<img t-att-src="'/report/barcode/EAN13/' + your_var" />

I hope that it will help somebody.

Sylvain LE GAL
On 5/27/16, 5:42 PM

did you tried to put your file in a static folder ? (or subfolder). It should fix your problem.

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: 5/27/16, 5:16 AM
Seen: 707 times
Last updated: 5/30/16, 3:46 AM