Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5694 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 18
4473
2
mrt. 15
6946
8
mei 18
8504
11
sep. 15
4014
4
dec. 23
11887