行开始在第二页上打印。 Qweb报告

时间:2019-12-20 10:45:58

标签: odoo wkhtmltopdf odoo-9 qweb

在我的报告中,我的名字真的很长,所以我的页面从第二页开始。如何使它从头开始,然后在某个时候中断?

enter image description here

<tbody class="invoice_tbody">
                    <tr t-foreach="get_lines(o, o.partner_id.lang)" t-as="l">
                        <td style="border: solid 1px; text-align: center;">
                            <span t-esc="l['line_number']"/>
                        </td>
                        <td style="border: solid 1px">
                            <span t-esc="l['name']"/> <span t-raw="l['warranty']"/> <span t-raw="l['sn']"/> <span t-raw="l['numbers']"/> <span t-raw="l['contract_info']"/> <span t-raw="l['note']"/>
                        </td>
                        <td class="text-right" style="border: solid 1px">
                            <span t-esc="'%.4f'%(l['price_unit'])"/>
                        </td>
                        <td class="text-right" style="border: solid 1px; text-align: center;">
                            <span t-esc="l['uom_name']"/>
                        </td>
                        <td class="text-right" style="border: solid 1px">
                            <span t-esc="'%.2f'%(l['quantity'] * get_sign(o))"/>
                        </td>
                        <td class="text-right" style="border: solid 1px" t-if="display_discount(o)">
                            <span t-esc="'%.2f'%(l['discount'])"/>
                        </td>
                        <td class="text-right" style="border: solid 1px">
                            <span t-esc="'%.2f'%(l['price_subtotal'] * get_sign(o))"/> <span t-esc="convert_eur(float('%.2f'%(l['price_subtotal']))) and '/' + convert_eur(float('%.2f'%(l['price_subtotal'] * get_sign(o))))"/>
                        </td>
                    </tr>
                </tbody>

0 个答案:

没有答案