Skip to Content
Menu
This question has been flagged
2 Replies
3614 Views

Hi,

I'm trying to generate a barcode with the information of the products and the customer in the order and then show it with qweb when you print the order.Anyone can help?

Avatar
Discard

Do you know what a barcode is and how much and what kind of information can be coded in a barcode? What exactly do you want to achieve? The only thing I could imagine is to create a barcode from the sales order number so that the sales order could be retrieved from the database by scanning the barcode

Best Answer

Dear Skurt

Try this on Qweb

              

<img t-if="o.name" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode, 350, 40)"/>
o.name describe the sale order number.
After that add another information if you need..

I hope I helped you...
Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
15
2
Nov 24
477
1
Oct 24
838
2
Aug 24
332
3
Jul 24
12229