Odoo Help


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.


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

Drees Far
on 8/31/15, 7:12 AM 468 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 3 5
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

Drees Far
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????

Drees Far
on 8/31/15, 9:39 AM

pawan are u here please my friend!!!

Drees Far
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??

Drees Far
on 9/1/15, 5:46 AM

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

Drees Far
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

Drees Far
on 9/2/15, 5:52 AM

pawan my friend are you here please??

Drees Far
on 9/2/15, 7:47 AM

Drees Far

--Drees Far--
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
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.

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)


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