Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to put a page break in a table with webkit ?!

By
hellequin
on 1/17/14, 11:48 AM 1,013 views

In my file sale_order.mako, i have a loop in a table that displays my products.

How to display my eleventh products on the second page ?

<table id="table">
    <tr page-break-inside: avoid;>
        <th>Référence</th>
        <th>Désignation</th>
        <th>Qté</th>
        <th>P.U.HT</th>
        <th>%REM</th>
        <th>Remise HT</th>
        <th>Montant HT</th>
        <th>TVA</th>
    </tr>
    %for l in o.order_line :

    <%
    if hasattr(l, 'order_line'):
        setLang(l.order_line.lang)
    %>
            <tr>
        <td ></td>
        <td ><strong>test</strong></td>
        <td ></td>
        <td ></td>
        <td ></td>
        <td ></td>
        <td ></td>
        <td ></td>
    </tr>

    <tr>
        <td style="text-align:left;">${Reference()}</td>
        <td style="text-align:left;">${NameArticle()}</td>
        <td style="text-align:right;">${l.product_uos_qty}</td>
        <td style="text-align:right;">${l.price_unit}</td>
        <td style="text-align:right;">${l.discount or ''}</td>
        <td style="text-align:right;">${l.discount or ''}</td>
        <td style="text-align:right;">${l.price_subtotal}</td>
        <td style="text-align:center;">0</td>
    </tr>
    %endfor


</table>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/17/14, 11:48 AM
Seen: 1013 times
Last updated: 3/16/15, 8:10 AM