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

Hello

Is there a way to change the label size as my labels are smaller and I cant use the labels odoo is generating.

thanks


Ảnh đại diện
Huỷ bỏ

"BARCODES" is not a question. I edited your post so you can sew how to post a question. Please consider doing this so readers don't have to open your post before they are able to get an idea if they can help.

Tác giả

Hello Saimon

Can you please tell me how to do that?

Thanks

Dina

Câu trả lời hay nhất

        <template id="report_asset_template_label">

            <t t-call="web.basic_layout">

                <div class="page" style="padding:0px;margin:0px;">

                    <t t-foreach="docs" t-as="asset">

                        <div style="width: 100%; display: inline-table;text-align:center;font-size:16px;">

                            <span t-field="asset.department"/>

                            <t t-if="asset.barcode">

                                <img alt="Barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', asset.barcode, 600, 150)" style="width:350px;height:60px" align="center"/>

                                <span t-field="asset.barcode"/>

                            </t>

                            <t t-else=""><span class="text-muted">No barcode available</span></t>

                        </div>

                    </t>

                </div>

            </t>

        </template>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

If you would like to label size change, then you have to use custom css style

Thanks

 

Ảnh đại diện
Huỷ bỏ