跳至内容
菜单
此问题已终结
1 回复
4750 查看

In my report, I have really long name, so my page starts on the second page. How can I make it start on the first and then break at some point?

link to img

https://ibb.co/vJQpy51



<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>



形象
丢弃
最佳答案

You may use style="page-break-after:always". 

形象
丢弃
相关帖文 回复 查看 活动
2
3月 16
3520
1
8月 23
1735
1
3月 24
4938
1
9月 21
9931
0
4月 20
3673