Hi,
I would need to print the SO number f.e SO015 on the Sales Order PDF (Quotation/Order) f.e. as Code128 barcode.
Is there any module or could please someone explain how this can be done in qweb etc. Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I would need to print the SO number f.e SO015 on the Sales Order PDF (Quotation/Order) f.e. as Code128 barcode.
Is there any module or could please someone explain how this can be done in qweb etc. Thank you
Hello Simon
Please try with
t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', you field name, 600, 150)"
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Hi Simon:
To clarify Jainesh's post, Odoo has a builtin feature that allows you to generate a barcode image and include it in the QWeb report. To do this, you need to include an tag at the desired location in your report xml like so:
<img alt="SO Number" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 150)"/>
The URL /report/barcode/ points to a controller that generates a barcode image based on the values of the parameters passed to it.
Hope this helps.
Hi Paresh, I got it working with some other help. However when using your code I get the following error: EntityRef: expecting ';', line 15, column 89
Any idea?
Hi Simon: Replace the & signs with & so they get treated as HTML entities
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
1
Mar 23
|
2539 | |||
|
0
Jun 23
|
3359 | |||
|
0
Dec 22
|
3444 | |||
|
0
Aug 21
|
3461 | |||
|
2
Sep 25
|
747 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.