I have a many2many field in xml. Now I want to display the same in report but it shows ID instead of addressee name like addresses(9,19) where as I want show it as Addressee Name.  I have add the model field too but not working.
 
Please any leads if any
Thanks  
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
It would have been better if you would have shared your code.
Try the following code:
< span t-field="o.my_m2m_field"/>
Try the following if the above code doesn't work:
< t t-foreach="doc.m2m_field" t-as="line">
     < span t-esc="line.name"/>
 < /t>
Hi Hafiz,
You can achieve this by adding a for loop,
eg:
<t t-foreach="o.picking_ids" t-as="pick">
      <span t-field="pick.name"/>
</t>
Hope it helps,
Kiran K
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|  | 1 apr. 25  | 1906 | ||
|  | 2 mar. 25  | 2510 | ||
|  | 4 nov. 24  | 7894 | ||
|  | 1 mar. 24  | 2764 | ||
|  | 3 sept. 23  | 25802 | 
 
                        
Hi, Sudhir and Kiran
Thank you for valued suggestions
I tried < span t-field="o.my_m2m_field"/> as suggested by Sudhir and it worked for me
Hi, Sudhir and Kiran
Thank you for valued suggestions
I tried < span t-field="o.my_m2m_field"/> as suggested by both of you and it worked for me