Se rendre au contenu
Menu
Cette question a été signalée

Hello,


I want to show the product barcode in a report that I created in work order so how can I add it?


May anyone help please its so important! Waiting for a reply.


Thanks.

Avatar
Ignorer
Meilleure réponse

Hi asma, 

Hope you doing well. 

Please find code in comment. 

I Hope this will help you. 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Ignorer

XML:
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product_id.barcode, 600, 100)"
style="width:350px;height:60px;"/>

Auteur

Hi Jainesh,

My report can be view and pdf I used the code you gave the barcode is shown in the view but not in the pdf so is there a solution.

Publications associées Réponses Vues Activité
1
juin 23
1940
3
juil. 21
4546
1
mars 15
3689
0
mars 15
3451
0
mars 15
2918