Odoo Help


repeatIn don't work inside a tag <td> for repeat columns in rml reports

Vale Trood
on 8/31/15, 7:12 AM 823 views

I want to repeat columns in a rml report using the method 'repeatIn' inside a tag -td- but didn't have success.

I need some help please.




| 4 4 6
Hyderabad, India

On 8/31/15, 7:32 AM


 For this in .py you need to have something like this:

def your_function_name(self,your_object_passing_from_rml_if_any):


emp_ids = self.pool.get('hr.employee').search(self.cr, self.uid, []) # or whatever criteria to get employee ids

for obj in self.pool.get('hr.employee').browse(self.cr, self.uid, emp_ids):


     dic['name'] =obj.name


return lis

and in xml:

<para style="Your_style">[[ repeatIn(your_function_name(your_object_declared_above_using_repeatIn_if_any),'obj') ]]</para>

<blockTable colWidths = "100,100,100,100,100,100" style = "Your_style" >


<td> [[ obj['name'] ]]




Hope it helps!

Pawan thanks a lot fir the answer. But the python is ok :) but the problem is with the rml i want to make each employee in a td ( one cell) on the horizontal

Vale Trood
on 8/31/15, 9:29 AM

Pawan how can i work with [[ repeatIn(o.invoice_line,'l', 'td') ]] : cycle of each line, and for each row of data to create a cell????

Vale Trood
on 8/31/15, 9:39 AM

pawan are u here please my friend!!!

Vale Trood
on 8/31/15, 11:26 AM

Drees, i have gone through it, i didn't got anyway out till now to get this done,but of course there must be some.
And regarding this: [[ repeatIn(o.invoice_line,'l', 'td') ]] , this can be used if you are using verion 4.1.X........ if this works, it will surely get your problem solved.

on 9/1/15, 3:53 AM

So what can be the solution. Really i am blocked from two days ago. Can you suggest some thing to me as i was accustomed??

Vale Trood
on 9/1/15, 5:46 AM

Pawan v4.1.X is the version of openoffice or what??

Vale Trood
on 9/1/15, 6:31 AM

Yes Drees, its openoffice version only!! Did you got any solution ?

on 9/2/15, 1:14 AM

No i didnt get any solution. But, are you sure if i change the version o my openoffice it will be ok. i regret if i change and nothing ll change. Look at this link friend: https://www.odoo.com/fr_FR/forum/help-1/question/repeatin-dont-work-inside-a-tag-td-for-repeat-columns-in-rml-reports-18641#answer-18756

Vale Trood
on 9/2/15, 5:52 AM

pawan my friend are you here please??

Vale Trood
on 9/2/15, 7:47 AM

Vale Trood

--Vale Trood--

| 5 2 7
Tunis, France
--Vale Trood--

Vale Trood
On 9/3/15, 5:39 AM


Here is the answer.

First, i had to change the version of my OpenOffice which is v4.1.X.

Second, i used [[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'o', 'td') ]] which Loop on every line and make a new table cell for each line.

So here is the right answer:



<para style="P8">NOM EMPLOYÉ</para>



<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'o', 'td') ]]</para>

<para style="P7">[[ o['name'] ]]</para>



Best Regards.

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.


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

1 follower(s)


Asked: 8/31/15, 7:12 AM
Seen: 823 times
Last updated: 9/3/15, 5:39 AM