Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
13541 มุมมอง

When printing product module product label for the purpose of generatted barcode on each product,

there is so much waste in paper,

how can i print small size barcode label

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

In qweb u can use 

<img t-att-src="'/report/barcode/? type=%s&value=%s&width=%s&height=%s'%('EAN13', 'text', 200, 200)"/>
u can change the size in last two args..

refer this link for full details

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The frame_height and frame_width are used to create a frame for the product label. The file is product_xsl. The page size can be set in the template tag like this:

<document> <template pageSize="(175.78,79.38)" leftMargin="0.0cm" rightMargin="0.0cm" topMargin="0.0cm" bottomMargin="0.0cm" title="Address list" author="Generated by Odoo">

The pageSize is given in DTP-point, in this case:

175.78 DTP-point = 62mm and 79.38 DTP-point = 28mm

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 24
1085
0
มิ.ย. 25
1173
0
ก.พ. 25
1269
1
ม.ค. 25
1575
0
พ.ค. 24
1781