Odoo Help

0

Problem with repeatIn - RML Files

By
Selverine
on 12/26/13, 11:17 AM 1,486 views

Hi everybody,

I have a problem with a reparIn. I would like to create a table, two columns, with one field on the left and an repeatIn of another field on the right. The problem is with my repeatIn, my field on the left is printed as many times as the repatIn (not just one time)

My code:

  <blockTable colWidths="269.0,260.0" style="Table2">
  <tr>
    <td>
      <para style="P5">[[ o.description_Quotation or removeParentNode('para') ]]</para>
    </td>
    <td> 
       <para style="terp_default_9">[[ repeatIn(o.order_line,'order_line') ]]</para>     
      <image alignment="CENTER" height="60.0" width="60.0" >  [[ order_line.product_id.image  or removeParentNode('para')]]</image>
    </td>
  </tr>
</blockTable>

Someone know why?

Thank you a lot

Selverine

0
ELIASS BENFATEH
On 4/11/16, 5:09 AM

Dear Selverine,

you can try:

<blockTable colWidths="269.0,260.0" style="Table2">
  <tr>
    <td>

<section>

<para style="P5">[[ o.description_Quotation or removeParentNode('para') ]]</para>

</section>

</td> <td>
<section> <para style="terp_default_9">[[ repeatIn(o.order_line,'order_line') ]]</para> </section>
      <image alignment="CENTER" height="60.0" width="60.0" >  [[ order_line.product_id.image  or removeParentNode('para')]]</image>
    </td>
  </tr>
</blockTable>

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: 12/26/13, 11:17 AM
Seen: 1486 times
Last updated: 4/11/16, 5:09 AM