Odoo Help


Product attributes in qweb report

on 3/2/16, 10:39 AM 1,343 views


anyone can show me how i can add the attributes of the product in sale order report "qweb", i don't know the name of the fields, i tested already "l.product_id.attribute_value_ids" and "l.product_id.attribute_line_ids" but it's not work

Thank you in advance.


I don't found your reply for the second time, why ?


Le 2 mars 2016 à 17:24, Axel Mendoza <portaltemplate12973@mail.odoo.com> a écrit :

A new question Product attributes in qweb report on Ayuda has been posted. Click here to access the question :

See question

Axel Mendoza

Sent by Odoo Inc. using Odoo
on 3/2/16, 11:55 AM

Anyone to help me. :(

on 3/3/16, 5:38 PM

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--

| 3 3 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 3/5/16, 3:36 PM
<ul t-foreach="l.product_id.attribute_value_ids" t-as="attrib_value">
    <li t-esc=" '%s: %s' % (attrib_value.attribute_id.name, attrib_value.name)"/>

I have not tested but according the model, it should work !


This one is working fine but, is there a way not to use this for each loop. I think this cost performance in generating report.

Arafat Ali
on 10/23/17, 3:29 PM
William Brugger
On 3/5/16, 3:03 PM

try this:

 <span t-field="l.product_id.attribute_value_ids.name"/>
On 3/5/16, 3:15 PM

Thanks Jérémy it's work for values :).

What field i can use for get the name of attributes ?

i have tested attribute_line_ids.name but it not work ?!

I edited my previous post because I could not reply directly to Jérémy, is it normal ?, or may be because I don't have enough Karma ?!

on 3/5/16, 3:54 PM

I have updated my answer :)

Jérémy Kersten (jke)
on 3/5/16, 5:09 PM

Thank you Jérémy it work :), but i can't make subject resolved :(

on 3/5/16, 5:41 PM

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

2 follower(s)


Asked: 3/2/16, 10:39 AM
Seen: 1343 times
Last updated: 3/7/16, 5:55 PM