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

Ordered list in report - how to implement?

By
Antanas
on 5/8/13, 8:31 AM 1,242 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)

--Naresh Soni (nch)--
Tiny ERP Pvt Ltd
http://www.odoo.com
1281
| 2 2 4
India
--Naresh Soni (nch)--

Team Lead, Odoo(Formerly OpenERP) Support & OPW

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

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

0 follower(s)

Stats

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