Odoo Help

-2

How to make each result in a cell?

By
Drees Far
on 8/31/15, 5:56 AM 392 views

Hi friends!!

Please friends, i am creating a new report with RML.

Here is my python:0

def get_employee_lines(self, context=None):

print ('--------------------MOMO----------------------')

res_list=[]

payslip_line = self.pool.get('hr.payslip')

print payslip_line

obj_ids = payslip_line.search(self.cr, self.uid, [])

print obj_ids

for res in payslip_line.read(self.cr, self.uid, obj_ids, ['id', 'employee_id'], context=False):

print res['employee_id'][1]

obj = {}

obj['name'] = res['employee_id'][1]

res_list.append(obj)

return res_list

And my RML:

<tr>

<td>

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

</td>

<td>

<para style="P7">[[ repeatIn(get_employee_lines(), 'o') ]]</para>

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

</td>

<td>

<para style="P7">

<font color="white"> </font>

</para>

</td>

</tr>

But, i got the result in one cell.

I need to make each result in one cell.

Please help

Regards

try to answer and help instead of doing that!!

Drees Far
on 8/31/15, 7:14 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

1 follower(s)

Stats

Asked: 8/31/15, 5:56 AM
Seen: 392 times
Last updated: 8/31/15, 7:14 AM