Skip to Content
Menu
This question has been flagged
3 Replies
5140 Rodiniai

I tried two ways to display many2many field in list view but none of them worked:

1) <field name="test_ids"/> --> It shows just the number of records.(i.e. (3 records))

2) <field name="test_ids" widget="many2many"/> --> It shows the ids of records. (i.e. 2,3,4)

How to achive this?

Portretas
Atmesti
Best Answer

use ==> widget="many2many_tags"

Portretas
Atmesti
Autorius

I already tried this but not working. It shows the ids of records. (i.e. 2,3,4)

Autorius

Tnx. There was some issue in my db. I created new db and it worked.

Best Answer

Hello Rakesh,

.py - field_name = fields.Many2many('res.partner', string="many2many_tags")

.xml - <field name="field_name" widget="many2many_tags"/>


Hope it helps,

Regards,

Mayank Gosai

Portretas
Atmesti
Autorius

Tnx. There was some issue in my db. I created new db and it worked.

Related Posts Replies Rodiniai Veikla
1
birž. 20
14002
1
spal. 16
4050
1
rugs. 15
10683
0
gruod. 23
1622
1
geg. 23
3080