This question has been flagged
1 Reply
3867 Views

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>



Avatar
Discard
Best Answer

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

Avatar
Discard