Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7313 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 22
8039
0
thg 4 22
2897
0
thg 4 22
6
2
thg 4 23
8352
1
thg 3 23
1775