콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
6월 23
2065
Removing Barcode 해결 완료
3
7월 21
4748
1
3월 15
3859
0
3월 15
3670
0
3월 15
3089