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

i'am working on odoo and i want to design a barcode label , on baber size 40 mm * 55 mm i set baber size in odoo front end as the label size, and if i print a small barcode label it print well , but if the barcode is little long it print in tow paper how can i set to be fixed and i want to let the barcode img to be in center of label because it going little right to the table border

\Here is the image of damaged label

here is the xml code


<odoo>
<data>
     <template id="report_simple_label" inherit_id="product.report_simple_label">
          <xpath expr="//div" position="replace">
              <div class="col-xs-4" style="padding:0;" align="center">
                    <table class="table table-bordered mb-0" width="50mm" style="padding:0"  >
                      <tr  style="font-size: 50%;;padding:0" align="center" valign="center">
 <td style="font-size: 110%;;padding:0">
                            <strong t-field="product.name"/>
</td>
                      </tr>
                      <tr style="text-align: center;padding:0">
                        <td class="text-center align-middle" style="text-align: center;padding:.5" >
                            <img t-if="product.barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode,600 ,150)" style="text-align:center;width:120%;height:30%;padding:0" align="center" class="center"/>
                            <br style="text-align: center;padding:0;">     
                                <span  style="font-size: 6px;text-align: center;padding:0;" t-field="product.barcode"/>
                            </br>
                        </td>
                      </tr>
                      <tr style="text-align: center;">
                        <td style="font-size: 60%;padding:0">www.autopartsegypt.com</td>
                      </tr>
                    </table>
             </div>
          </xpath>
    </template>
</data>
</odoo>

any help will be appreciated


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
address with ampersand in qweb แก้ไขแล้ว
1
ต.ค. 22
8337
0
เม.ย. 22
3047
0
เม.ย. 22
6
t-att-href url get error แก้ไขแล้ว
2
เม.ย. 23
8537
1
มี.ค. 23
1902