Odoo Help


repeatIn and RML - sale_order.rml

on 1/10/14, 7:09 AM 2,625 views

Hi everybody,

In my object product_template , I create an one2many field that is linked to an class product_cara. It works.

Now, I would like to print on my rml sale_order.rml all the line present in my one2many field.

class product_template(osv.osv):
_name = "product.template"
_description = "Product Template"

_columns = {
    'name': fields.char('Name', size=128, required=True, translate=True, select=True),
    'product_cara': fields.one2many('product.cara', 'product_cara_id', 'product Cara),

I try something like this:

        <para style="terp_default_9">[[ repeatIn(o.order_line.product_id.product_tmpl_id.product_cara,'cara') ]]</para>
        <para style="P5"><font face="Helvetica">[[ cara.name ]]</font></para>

But it don't works. Have just have this on my rml :


If someone can help me , it would be really nice.

Thank you a lot

Best regards,


On 2/24/14, 9:59 AM

Pls. try this.

<para style="terp_default_9">[[ repeatIn(o.order_line.product_id.product_tmpl_id.product_cara,'cara') ]]</para> <section> <para style="P5">[[ cara.name ]]</para> </section>

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

0 follower(s)


Asked: 1/10/14, 7:09 AM
Seen: 2625 times
Last updated: 3/16/15, 8:10 AM