تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1940 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال

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;"/>

الكاتب

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 23
1939
Removing Barcode تم الحل
3
يوليو 21
4525
1
مارس 15
3681
0
مارس 15
3446
0
مارس 15
2916