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

I'm generating barcodes from lines made from someone else. It looks like the barcode is getting scaled, resulting in gray edges to the left and right of the barcode lines, that, in turn, result in the printer printing the lines with aliased artifacts (The printer cant print gray, so it prints a ratio of pixels).


I'm not too involved with Odoo, but would like to try and fix it. Is there something below I can change to fix the issue?


<?xml version="1.0"?>

     <t t-name="stock.report_lot_barcode">

        <t t-call="report.html_container">

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

                 <t>

                    <div class="page">

                         <div class="row">

                            <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px"/>

                            <p class="text-center" t-field="o.name"/>

                        </div>

                    </div>

                </t>

            </t>

        </t>

</t>

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

I can provide images, if that helps get this question answered....

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
903
2
thg 2 23
6782
1
thg 2 23
2696
0
thg 2 23
2671
14
thg 1 24
13402