Odoo Help

0

Ordered list in report - how to implement?

By
Antanas
on 5/8/13, 8:31 AM 1,459 views

Say I have a rml report, where is a table with two columns:

<blockTable>
    <tr>
        <td>Nr</td> <td>Name</td>
    </tr>

    <tr>
        <td>[[ repeatIn(o.invoice_line,'l') ]]</td> <td>[[ l.name ]]</td>
    </tr>
</blockTable>

In the first column I would like to have numbers for each row in table, f.e.:

Nr   Name
1    Laptop
2    PC
3    Hard Drive

How can it be done?

2
Naresh Soni (nch)
On 5/8/13, 8:37 AM

Use seq and seqReset tag

Eg:

<para style="terp_default_6"><seq id="L1"/></para>

for resetting:

<para><seqReset id="L1"/></para>

Thank you!

Antanas
on 5/8/13, 9:00 AM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/8/13, 8:31 AM
Seen: 1459 times
Last updated: 3/16/15, 8:10 AM