Skip to Content
Menu
This question has been flagged
2 Replies
3519 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 !


Avatar
Discard
Author Best Answer

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.

Avatar
Discard
Best Answer

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


Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
16
1
Oct 24
839
2
Aug 24
332
1
May 24
336
0
Feb 24
468