Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
8059 Tampilan

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Okt 22
8961
0
Apr 22
3480
0
Apr 22
6
2
Apr 23
9296
1
Mar 23
2317