Skip to Content
Menú
This question has been flagged
1 Respondre
5662 Vistes

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 :

browse_record_list(5)

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

Thank you a lot

Best regards,

Selverine

Avatar
Descartar
Best Answer

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>

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 18
4385
2
de març 15
6896
8
de maig 18
8447
11
de set. 15
3943
4
de des. 23
11823