Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4743 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 16
3515
1
ago 23
1730
1
mar 24
4936
1
set 21
9924
0
apr 20
3673