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 and RML - sale_order.rml

on 1/10/14, 7:09 AM 1,935 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>

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

0 follower(s)


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