Odoo Help

0

Problem with barcode image

By
Matthieu
on 5/27/16, 5:16 AM 415 views

Hello,


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 :

http://i.imgur.com/Lkz30vp.png


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


Thanks in advance !


0
Matthieu
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.

0
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.

Register

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)

Stats

Asked: 5/27/16, 5:16 AM
Seen: 415 times
Last updated: 5/30/16, 3:46 AM